Modul speiger.src.collections
Klasse AbstractObject2BooleanMap<T>
java.lang.Object
java.util.AbstractMap<T,Boolean>
speiger.src.collections.objects.maps.abstracts.AbstractObject2BooleanMap<T>
- Typparameter:
T- the keyType of elements maintained by this Collection
- Alle implementierten Schnittstellen:
Predicate<T>,Map<T,,Boolean> Object2BooleanMap<T>
- Bekannte direkte Unterklassen:
Enum2BooleanMap,ImmutableObject2BooleanOpenHashMap,Object2BooleanArrayMap,Object2BooleanAVLTreeMap,Object2BooleanConcurrentOpenHashMap,Object2BooleanMaps.EmptyMap,Object2BooleanMaps.SingletonMap,Object2BooleanMaps.SynchronizedMap,Object2BooleanMaps.UnmodifyableMap,Object2BooleanOpenCustomHashMap,Object2BooleanOpenHashMap,Object2BooleanRBTreeMap
public abstract class AbstractObject2BooleanMap<T>
extends AbstractMap<T,Boolean>
implements Object2BooleanMap<T>
A Base Implementation of a Type Specific Map to reduce boxing/unboxing
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifizierer und TypKlasseBeschreibungstatic classA Simple Type Specific Entry class to reduce boxing/unboxingVon Klasse geerbte verschachtelte Klassen/Schnittstellen java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen speiger.src.collections.objects.maps.interfaces.Object2BooleanMap
Object2BooleanMap.BuilderCache<T>, Object2BooleanMap.Entry<T>, Object2BooleanMap.FastEntrySet<T>, Object2BooleanMap.MapBuilder -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbooleancomputeBoolean(T key, ObjectBooleanUnaryOperator<T> mappingFunction) A Type Specific compute method to reduce boxing/unboxing If the generated value equals the getDefaultReturnValue it will simply not insert it since that is treated as "null".booleancomputeBooleanIfAbsent(T key, Predicate<T> mappingFunction) A Type Specific computeIfAbsent method to reduce boxing/unboxing If the generated value equals the getDefaultReturnValue it will simply not insert it since that is treated as "null".booleancomputeBooleanIfAbsentNonDefault(T key, Predicate<T> mappingFunction) A Type Specific computeIfAbsent method to reduce boxing/unboxing If the generated value equals the getDefaultReturnValue it will simply not insert it since that is treated as "null".booleancomputeBooleanIfPresent(T key, ObjectBooleanUnaryOperator<T> mappingFunction) A Type Specific compute method to reduce boxing/unboxing If the generated value equals the getDefaultReturnValue it will simply not insert it since that is treated as "null".booleancomputeBooleanIfPresentNonDefault(T key, ObjectBooleanUnaryOperator<T> mappingFunction) A Type Specific compute method to reduce boxing/unboxing If the generated value equals the getDefaultReturnValue it will simply not insert it since that is treated as "null".booleancomputeBooleanNonDefault(T key, ObjectBooleanUnaryOperator<T> mappingFunction) A Type Specific compute method to reduce boxing/unboxing If the generated value equals the getDefaultReturnValue it will simply not insert it since that is treated as "null".booleancontainsKey(Object key) booleancontainsValue(boolean value) Type Specific method to reduce boxing/unboxing of valuescopy()A Function that does a shallow clone of the Map itself.entrySet()booleanvoidforEach(ObjectBooleanConsumer<T> action) Type Specific forEach method to reduce boxing/unboxingbooleanMethod to see what the default return value is.getOrDefault(Object key, Boolean defaultValue) inthashCode()keySet()voidmergeAllBoolean(Object2BooleanMap<T> m, BooleanBooleanUnaryOperator mappingFunction) A Bulk method for merging Maps.booleanmergeBoolean(T key, boolean value, BooleanBooleanUnaryOperator mappingFunction) A Type Specific merge method to reduce boxing/unboxing If the generated value equals the getDefaultReturnValue it will simply not insert it since that is treated as "null".Veraltet.voidvoidputAll(Object2BooleanMap<T> m) Type Specific function for the bull putting of valuesvoidType Specific array method to bulk add elements into a map without creating a wrapper and increasing performancesvoidType Specific Object array method to bulk add elements into a map without creating a wrapper and increasing performancesvoidType-Specific bulk put method put elements into the map if not present.booleanA Type Specific replace method to reduce boxing/unboxing replace an existing valuebooleanA Type Specific replace method to replace an existing valuevoidreplaceBooleans(ObjectBooleanUnaryOperator<T> mappingFunction) A Type Specific mass replace method to reduce boxing/unboxingvoidType-Specific bulk replace method.setDefaultReturnValue(boolean v) Method to define the default return value if a requested key isn't presentbooleansupplyBooleanIfAbsent(T key, BooleanSupplier valueProvider) A Supplier based computeIfAbsent function to fill the most used usecase of this function If the generated value equals the getDefaultReturnValue it will simply not insert it since that is treated as "null".booleansupplyBooleanIfAbsentNonDefault(T key, BooleanSupplier valueProvider) A Supplier based computeIfAbsent function to fill the most used usecase of this function If the generated value equals the getDefaultReturnValue it will simply not insert it since that is treated as "null".values()Von Klasse geerbte Methoden java.util.AbstractMap
clear, containsValue, isEmpty, size, toStringVon Schnittstelle geerbte Methoden speiger.src.collections.objects.maps.interfaces.Object2BooleanMap
compute, computeIfAbsent, computeIfPresent, containsValue, forEach, getBoolean, getOrDefault, merge, object2BooleanEntrySet, put, put, put, putAll, putAll, putIfAbsent, putIfAbsent, rem, remOrDefault, remove, remove, replace, replace, replaceAll, synchronize, synchronize, test, unmodifiable
-
Konstruktordetails
-
AbstractObject2BooleanMap
public AbstractObject2BooleanMap()
-
-
Methodendetails
-
getDefaultReturnValue
public boolean getDefaultReturnValue()Beschreibung aus Schnittstelle kopiert:Object2BooleanMapMethod to see what the default return value is.- Angegeben von:
getDefaultReturnValuein SchnittstelleObject2BooleanMap<T>- Gibt zurück:
- default return value
-
setDefaultReturnValue
Beschreibung aus Schnittstelle kopiert:Object2BooleanMapMethod to define the default return value if a requested key isn't present- Angegeben von:
setDefaultReturnValuein SchnittstelleObject2BooleanMap<T>- Parameter:
v- value that should be the default return value- Gibt zurück:
- itself
-
copy
Beschreibung aus Schnittstelle kopiert:Object2BooleanMapA Function that does a shallow clone of the Map itself. This function is more optimized then a copy constructor since the Map does not have to be unsorted/resorted. It can be compared to Cloneable but with less exception risk- Angegeben von:
copyin SchnittstelleObject2BooleanMap<T>- Gibt zurück:
- a Shallow Copy of the Map
-
put
Veraltet. -
putAll
Beschreibung aus Schnittstelle kopiert:Object2BooleanMapType Specific function for the bull putting of values- Angegeben von:
putAllin SchnittstelleObject2BooleanMap<T>- Parameter:
m- the elements that should be inserted
-
putAll
-
putAll
Beschreibung aus Schnittstelle kopiert:Object2BooleanMapType Specific array method to bulk add elements into a map without creating a wrapper and increasing performances- Angegeben von:
putAllin SchnittstelleObject2BooleanMap<T>- Parameter:
keys- the keys that should be addedvalues- the values that should be addedoffset- where the to start in the arraysize- how many elements should be added- Siehe auch:
-
putAll
Beschreibung aus Schnittstelle kopiert:Object2BooleanMapType Specific Object array method to bulk add elements into a map without creating a wrapper and increasing performances- Angegeben von:
putAllin SchnittstelleObject2BooleanMap<T>- Parameter:
keys- the keys that should be addedvalues- the values that should be addedoffset- where the to start in the arraysize- how many elements should be added- Siehe auch:
-
putAllIfAbsent
Beschreibung aus Schnittstelle kopiert:Object2BooleanMapType-Specific bulk put method put elements into the map if not present.- Angegeben von:
putAllIfAbsentin SchnittstelleObject2BooleanMap<T>- Parameter:
m- elements that should be added if not present.
-
containsKey
- Angegeben von:
containsKeyin SchnittstelleMap<T,Boolean> - Setzt außer Kraft:
containsKeyin KlasseAbstractMap<T,Boolean>
-
containsValue
public boolean containsValue(boolean value) Beschreibung aus Schnittstelle kopiert:Object2BooleanMapType Specific method to reduce boxing/unboxing of values- Angegeben von:
containsValuein SchnittstelleObject2BooleanMap<T>- Parameter:
value- element that is searched for- Gibt zurück:
- if the value is present
-
replace
Beschreibung aus Schnittstelle kopiert:Object2BooleanMapA Type Specific replace method to replace an existing value- Angegeben von:
replacein SchnittstelleObject2BooleanMap<T>- Parameter:
key- the element that should be searched foroldValue- the expected value to be replacednewValue- the value to replace the oldValue with.- Gibt zurück:
- true if the value got replaced
-
replace
Beschreibung aus Schnittstelle kopiert:Object2BooleanMapA Type Specific replace method to reduce boxing/unboxing replace an existing value- Angegeben von:
replacein SchnittstelleObject2BooleanMap<T>- Parameter:
key- the element that should be searched forvalue- the value to replace with.- Gibt zurück:
- the present value or default return value
-
replaceBooleans
Beschreibung aus Schnittstelle kopiert:Object2BooleanMapType-Specific bulk replace method. Could be seen as putAllIfPresent- Angegeben von:
replaceBooleansin SchnittstelleObject2BooleanMap<T>- Parameter:
m- elements that should be replaced.
-
replaceBooleans
Beschreibung aus Schnittstelle kopiert:Object2BooleanMapA Type Specific mass replace method to reduce boxing/unboxing- Angegeben von:
replaceBooleansin SchnittstelleObject2BooleanMap<T>- Parameter:
mappingFunction- operation to replace all values
-
computeBoolean
Beschreibung aus Schnittstelle kopiert:Object2BooleanMapA Type Specific compute method to reduce boxing/unboxing If the generated value equals the getDefaultReturnValue it will simply not insert it since that is treated as "null". A "Null Value" will be treated as "Do not insert/remove" based on how the Java has specified it.- Angegeben von:
computeBooleanin SchnittstelleObject2BooleanMap<T>- Parameter:
key- the key that should be computedmappingFunction- the operator that should generate the value- Gibt zurück:
- the result of the computation
-
computeBooleanIfAbsent
Beschreibung aus Schnittstelle kopiert:Object2BooleanMapA Type Specific computeIfAbsent method to reduce boxing/unboxing If the generated value equals the getDefaultReturnValue it will simply not insert it since that is treated as "null". A "Null Value" will be treated as "Do not insert/remove" based on how the Java has specified it.- Angegeben von:
computeBooleanIfAbsentin SchnittstelleObject2BooleanMap<T>- Parameter:
key- the key that should be computedmappingFunction- the operator that should generate the value if not present- Gibt zurück:
- the result of the computed value or present value
-
supplyBooleanIfAbsent
Beschreibung aus Schnittstelle kopiert:Object2BooleanMapA Supplier based computeIfAbsent function to fill the most used usecase of this function If the generated value equals the getDefaultReturnValue it will simply not insert it since that is treated as "null". A "Null Value" will be treated as "Do not insert/remove" based on how the Java has specified it.- Angegeben von:
supplyBooleanIfAbsentin SchnittstelleObject2BooleanMap<T>- Parameter:
key- the key that should be computedvalueProvider- the value if not present- Gibt zurück:
- the result of the computed value or present value
-
computeBooleanIfPresent
Beschreibung aus Schnittstelle kopiert:Object2BooleanMapA Type Specific compute method to reduce boxing/unboxing If the generated value equals the getDefaultReturnValue it will simply not insert it since that is treated as "null". A "Null Value" will be treated as "Do not insert/remove" based on how the Java has specified it.- Angegeben von:
computeBooleanIfPresentin SchnittstelleObject2BooleanMap<T>- Parameter:
key- the key that should be computedmappingFunction- the operator that should generate the value if present- Gibt zurück:
- the result of the default return value or present value
-
computeBooleanNonDefault
Beschreibung aus Schnittstelle kopiert:Object2BooleanMapA Type Specific compute method to reduce boxing/unboxing If the generated value equals the getDefaultReturnValue it will simply not insert it since that is treated as "null". A "Null Value" will be treated as "Do not insert/remove" based on how the Java has specified it.- Angegeben von:
computeBooleanNonDefaultin SchnittstelleObject2BooleanMap<T>- Parameter:
key- the key that should be computedmappingFunction- the operator that should generate the value- Gibt zurück:
- the result of the computation
-
computeBooleanIfAbsentNonDefault
Beschreibung aus Schnittstelle kopiert:Object2BooleanMapA Type Specific computeIfAbsent method to reduce boxing/unboxing If the generated value equals the getDefaultReturnValue it will simply not insert it since that is treated as "null". A "Null Value" will be treated as "Do not insert/remove" based on how the Java has specified it.- Angegeben von:
computeBooleanIfAbsentNonDefaultin SchnittstelleObject2BooleanMap<T>- Parameter:
key- the key that should be computedmappingFunction- the operator that should generate the value if not present- Gibt zurück:
- the result of the computed value or present value
-
supplyBooleanIfAbsentNonDefault
Beschreibung aus Schnittstelle kopiert:Object2BooleanMapA Supplier based computeIfAbsent function to fill the most used usecase of this function If the generated value equals the getDefaultReturnValue it will simply not insert it since that is treated as "null". A "Null Value" will be treated as "Do not insert/remove" based on how the Java has specified it.- Angegeben von:
supplyBooleanIfAbsentNonDefaultin SchnittstelleObject2BooleanMap<T>- Parameter:
key- the key that should be computedvalueProvider- the value if not present- Gibt zurück:
- the result of the computed value or present value
-
computeBooleanIfPresentNonDefault
public boolean computeBooleanIfPresentNonDefault(T key, ObjectBooleanUnaryOperator<T> mappingFunction) Beschreibung aus Schnittstelle kopiert:Object2BooleanMapA Type Specific compute method to reduce boxing/unboxing If the generated value equals the getDefaultReturnValue it will simply not insert it since that is treated as "null". A "Null Value" will be treated as "Do not insert/remove" based on how the Java has specified it.- Angegeben von:
computeBooleanIfPresentNonDefaultin SchnittstelleObject2BooleanMap<T>- Parameter:
key- the key that should be computedmappingFunction- the operator that should generate the value if present- Gibt zurück:
- the result of the default return value or present value
-
mergeBoolean
Beschreibung aus Schnittstelle kopiert:Object2BooleanMapA Type Specific merge method to reduce boxing/unboxing If the generated value equals the getDefaultReturnValue it will simply not insert it since that is treated as "null". A "Null Value" will be treated as "Do not insert/remove" based on how the Java has specified it.- Angegeben von:
mergeBooleanin SchnittstelleObject2BooleanMap<T>- Parameter:
key- the key that should be be searched forvalue- the value that should be merged withmappingFunction- the operator that should generate the new Value- Gibt zurück:
- the result of the merge
-
mergeAllBoolean
Beschreibung aus Schnittstelle kopiert:Object2BooleanMapA Bulk method for merging Maps. If the generated value equals the getDefaultReturnValue it will simply not insert it since that is treated as "null". A "Null Value" will be treated as "Do not insert/remove" based on how the Java has specified it.- Angegeben von:
mergeAllBooleanin SchnittstelleObject2BooleanMap<T>- Parameter:
m- the entries that should be bulk addedmappingFunction- the operator that should generate the new Value
-
get
-
getOrDefault
- Angegeben von:
getOrDefaultin SchnittstelleMap<T,Boolean> - Angegeben von:
getOrDefaultin SchnittstelleObject2BooleanMap<T>
-
remove
- Angegeben von:
removein SchnittstelleMap<T,Boolean> - Angegeben von:
removein SchnittstelleObject2BooleanMap<T>- Setzt außer Kraft:
removein KlasseAbstractMap<T,Boolean> - Parameter:
key- the element that should be removed- Gibt zurück:
- the value that was removed or default return value
- Siehe auch:
-
forEach
Beschreibung aus Schnittstelle kopiert:Object2BooleanMapType Specific forEach method to reduce boxing/unboxing- Angegeben von:
forEachin SchnittstelleObject2BooleanMap<T>- Parameter:
action- processor of the values that are iterator over
-
keySet
-
values
-
entrySet
-
equals
-
hashCode
public int hashCode()
-