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.

@FunctionalInterface public interface ShortPredicate
A Type Specific Function interface that reduces boxing/unboxing and fills the gaps of interfaces that are missing.
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    Creates a Always false function that may be useful if you don't need to process information or just want a default.
    Creates a Always true function that may be useful if you don't need to process information or just want a default.
    A Type specific and-function helper function that reduces boxing/unboxing
    A type specific inverter function
    A Type specific or-function helper function that reduces boxing/unboxing
    boolean
    test(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

      static ShortPredicate 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

      static ShortPredicate 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

      default ShortPredicate andType(ShortPredicate other)
      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

      default ShortPredicate negate()
      A type specific inverter function
      Gibt zurück:
      the same function but inverts the result
    • orType

      default ShortPredicate orType(ShortPredicate other)
      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