Class GeneratorContains.ContainsProcedure<T>

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private boolean found
      Flag to mark if the wrapped predicate succeeded or not.
      private UnaryPredicate<? super T> pred
      The wrapped predicate.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void run​(T obj)
      Execute this procedure.
      • Methods inherited from class java.lang.Object

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

      • pred

        private final UnaryPredicate<? super T> pred
        The wrapped predicate.
      • found

        private boolean found
        Flag to mark if the wrapped predicate succeeded or not.
    • Constructor Detail

      • ContainsProcedure

        public ContainsProcedure​(UnaryPredicate<? super T> pred)
        Create a new ContainsProcedure.
        Parameters:
        pred - The wrapped predicate
    • Method Detail

      • run

        public void run​(T obj)
        Execute this procedure.
        Specified by:
        run in interface UnaryProcedure<T>
        Parameters:
        obj - an A parameter to this execution