Typparameter:
T - the keyType of elements maintained by this Collection
Alle Superschnittstellen:
Predicate<T>
Funktionsschnittstelle:
Dies ist eine funktionale Schnittstelle, die somit als Zuweisungsziel für einen Lambdaausdruck oder eine Methodenreferenz verwendet werden kann.

@FunctionalInterface public interface Predicate<T> extends Predicate<T>
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
    static <T> Predicate<T>
    Creates a Always false function that may be useful if you don't need to process information or just want a default.
    static <T> Predicate<T>
    Creates a Always true function that may be useful if you don't need to process information or just want a default.
    default Predicate<T>
    and(Predicate<? super T> other)
    Veraltet.
    default Predicate<T>
    A Type specific and-function helper function that reduces boxing/unboxing
    default Predicate<T>
     
    default Predicate<T>
    or(Predicate<? super T> other)
    Veraltet.
    default Predicate<T>
    orType(Predicate<T> other)
    A Type specific or-function helper function that reduces boxing/unboxing
    boolean
    test(T k)
    Type Specific get function to reduce boxing/unboxing
  • Methodendetails

    • test

      boolean test(T k)
      Type Specific get function to reduce boxing/unboxing
      Angegeben von:
      test in Schnittstelle Predicate<T>
      Parameter:
      k - the value that should be processed
      Gibt zurück:
      the result of the function
    • alwaysTrue

      static <T> Predicate<T> alwaysTrue()
      Creates a Always true function that may be useful if you don't need to process information or just want a default.
      Typparameter:
      T - the keyType of elements maintained by this Collection
      Gibt zurück:
      a default returning function
    • alwaysFalse

      static <T> Predicate<T> alwaysFalse()
      Creates a Always false function that may be useful if you don't need to process information or just want a default.
      Typparameter:
      T - the keyType of elements maintained by this Collection
      Gibt zurück:
      a default returning function
    • andType

      default Predicate<T> andType(Predicate<T> 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
    • and

      @Deprecated default Predicate<T> and(Predicate<? super T> other)
      Veraltet.
      Angegeben von:
      and in Schnittstelle Predicate<T>
    • negate

      default Predicate<T> negate()
      Angegeben von:
      negate in Schnittstelle Predicate<T>
    • orType

      default Predicate<T> orType(Predicate<T> 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
    • or

      @Deprecated default Predicate<T> or(Predicate<? super T> other)
      Veraltet.
      Angegeben von:
      or in Schnittstelle Predicate<T>