Modul speiger.src.collections
Schnittstelle ShortPredicate
- Alle bekannten Unterschnittstellen:
Short2BooleanConcurrentMap,Short2BooleanMap,Short2BooleanNavigableMap,Short2BooleanOrderedMap,Short2BooleanSortedMap
- Alle bekannten Implementierungsklassen:
AbstractShort2BooleanMap,ImmutableShort2BooleanOpenHashMap,Short2BooleanArrayMap,Short2BooleanAVLTreeMap,Short2BooleanConcurrentOpenHashMap,Short2BooleanLinkedOpenCustomHashMap,Short2BooleanLinkedOpenHashMap,Short2BooleanMaps.EmptyMap,Short2BooleanMaps.SingletonMap,Short2BooleanMaps.SynchronizedMap,Short2BooleanMaps.SynchronizedNavigableMap,Short2BooleanMaps.SynchronizedOrderedMap,Short2BooleanMaps.SynchronizedSortedMap,Short2BooleanMaps.UnmodifyableMap,Short2BooleanMaps.UnmodifyableNavigableMap,Short2BooleanMaps.UnmodifyableOrderedMap,Short2BooleanMaps.UnmodifyableSortedMap,Short2BooleanOpenCustomHashMap,Short2BooleanOpenHashMap,Short2BooleanRBTreeMap
- Funktionsschnittstelle:
- Dies ist eine funktionale Schnittstelle, die somit als Zuweisungsziel für einen Lambdaausdruck oder eine Methodenreferenz verwendet werden kann.
A Type Specific Function interface that reduces boxing/unboxing and fills the gaps of interfaces that are missing.
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic ShortPredicateCreates a Always false function that may be useful if you don't need to process information or just want a default.static ShortPredicateCreates a Always true function that may be useful if you don't need to process information or just want a default.default ShortPredicateandType(ShortPredicate other) A Type specific and-function helper function that reduces boxing/unboxingdefault ShortPredicatenegate()A type specific inverter functiondefault ShortPredicateorType(ShortPredicate other) A Type specific or-function helper function that reduces boxing/unboxingbooleantest(short k) Type Specific get function to reduce boxing/unboxing
-
Methodendetails
-
test
boolean test(short k) Type Specific get function to reduce boxing/unboxing- Parameter:
k- the value that should be processed- Gibt zurück:
- the result of the function
-
alwaysTrue
Creates a Always true function that may be useful if you don't need to process information or just want a default.- Gibt zurück:
- a default returning function
-
alwaysFalse
Creates a Always false function that may be useful if you don't need to process information or just want a default.- Gibt zurück:
- a default returning function
-
andType
A Type specific and-function helper function that reduces boxing/unboxing- Parameter:
other- the other function that should be merged with.- Gibt zurück:
- a function that compares values in a and comparason
-
negate
A type specific inverter function- Gibt zurück:
- the same function but inverts the result
-
orType
A Type specific or-function helper function that reduces boxing/unboxing- Parameter:
other- the other function that should be merged with.- Gibt zurück:
- a function that compares values in a or comparason
-