Class FindWithinGenerator.FindProcedure<T>

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private T found
      The object found, if any.
      private UnaryPredicate<? super T> pred
      The adapted predicate.
      private boolean wasFound
      Flag to mark an object has been found.
    • 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

      • found

        private T found
        The object found, if any.
      • wasFound

        private boolean wasFound
        Flag to mark an object has been found.
    • Constructor Detail

      • FindProcedure

        public FindProcedure​(UnaryPredicate<? super T> pred)
        Create a new FindProcedure.
        Parameters:
        pred - the adapted 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