Class Predicates

java.lang.Object
ru.progrm_jarvis.javacommons.util.function.Predicates

public final class Predicates extends Object
Common implementations of Predicate.
  • Method Details

    • alwaysTrue

      @NotNull public static <@Any T> @NotNull Predicate<T> alwaysTrue()
      Creates a predicate which is always true.
      Type Parameters:
      T - any formal type of the input parameter
      Returns:
      predicate which is always true
    • alwaysFalse

      @NotNull public static <@Any T> @NotNull Predicate<T> alwaysFalse()
      Creates a predicate which is always false.
      Type Parameters:
      T - any formal type of the input parameter
      Returns:
      predicate which is always false