Class Predicates

java.lang.Object
io.bytestreams.codec.core.util.Predicates

public final class Predicates extends Object
Utility methods for creating common predicates.
  • Method Details

    • alwaysTrue

      public static <T> Predicate<T> alwaysTrue()
      Returns a predicate that always returns true.
      Type Parameters:
      T - the type of the input to the predicate
      Returns:
      a predicate that always returns true
    • alwaysFalse

      public static <T> Predicate<T> alwaysFalse()
      Returns a predicate that always returns false.
      Type Parameters:
      T - the type of the input to the predicate
      Returns:
      a predicate that always returns false