Class Predicates

java.lang.Object
org.multiverse.api.predicates.Predicates

public final class Predicates extends Object
Predicate utility class.
  • Field Details

    • IsNullPredicate

      private static final Predicate IsNullPredicate
    • IsNotNullPredicate

      private static final Predicate IsNotNullPredicate
  • Constructor Details

    • Predicates

      private Predicates()
  • Method Details

    • newIsNullPredicate

      public static <E> Predicate<E> newIsNullPredicate()
      Creates a Predicate that checks if the passed object is null. You will get an existing instance.
      Returns:
      the Predicate.
    • newIsNotNullPredicate

      public static <E> Predicate<E> newIsNotNullPredicate()
      Creates a Predicate that checks if the passed object is not null. You will get an existing instance.
      Returns:
      the Predicate.