Class Predicates


  • public class Predicates
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Predicates()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void assertIsNotNull​(java.util.function.Predicate<?> predicate)
      Asserts the given Predicate is not null.
      static Predicates instance()
      Returns the singleton instance of this class.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Predicates

        Predicates()
    • Method Detail

      • instance

        public static Predicates instance()
        Returns the singleton instance of this class.
        Returns:
        the singleton instance of this class.
      • assertIsNotNull

        public void assertIsNotNull​(java.util.function.Predicate<?> predicate)
        Asserts the given Predicate is not null.
        Parameters:
        predicate - the given Predicate.
        Throws:
        java.lang.NullPointerException - if the given Predicate is null.