Schnittstelle BooleanPredicate

Funktionsschnittstelle:
Dies ist eine funktionale Schnittstelle, die somit als Zuweisungsziel für einen Lambdaausdruck oder eine Methodenreferenz verwendet werden kann.

@FunctionalInterface public interface BooleanPredicate
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.
    Returns a composed function that first applies this function to its input, and then applies the after function to the result.
    A Type specific and-function helper function that reduces boxing/unboxing
    Returns a composed function that first applies the before function to its input, and then applies this function to the result.
    Creates a Default function that returns the input provided.
    A type specific inverter function
    A Type specific or-function helper function that reduces boxing/unboxing
    boolean
    test(boolean k)
    Type Specific get function to reduce boxing/unboxing
  • Methodendetails

    • test

      boolean test(boolean 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
    • identity

      static BooleanPredicate identity()
      Creates a Default function that returns the input provided.
      Gibt zurück:
      a input returning function
    • compose

      default BooleanPredicate compose(BooleanPredicate before)
      Returns a composed function that first applies the before function to its input, and then applies this function to the result. If evaluation of either function throws an exception, it is relayed to the caller of the composed function.
      Parameter:
      before - the function that should be used first
      Gibt zurück:
      a composed function with a different starting function.
    • andThen

      default BooleanPredicate andThen(BooleanPredicate after)
      Returns a composed function that first applies this function to its input, and then applies the after function to the result. If evaluation of either function throws an exception, it is relayed to the caller of the composed function.
      Parameter:
      after - the function that should be used last
      Gibt zurück:
      a composed function with a different starting function.
    • alwaysTrue

      static BooleanPredicate 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 BooleanPredicate 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 BooleanPredicate andType(BooleanPredicate 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 BooleanPredicate negate()
      A type specific inverter function
      Gibt zurück:
      the same function but inverts the result
    • orType

      default BooleanPredicate orType(BooleanPredicate 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