Class WaitablePredicate<T>

  • All Implemented Interfaces:
    Waitable<T>

    class WaitablePredicate<T>
    extends java.lang.Object
    implements Waitable<T>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.function.BooleanSupplier predicate  
    • Constructor Summary

      Constructors 
      Constructor Description
      WaitablePredicate​(java.util.function.BooleanSupplier predicate)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void dispose()  
      T get()  
      boolean isDone()  
      • Methods inherited from class java.lang.Object

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

      • predicate

        private final java.util.function.BooleanSupplier predicate
    • Constructor Detail

      • WaitablePredicate

        WaitablePredicate​(java.util.function.BooleanSupplier predicate)
    • Method Detail

      • isDone

        public boolean isDone()
        Specified by:
        isDone in interface Waitable<T>
      • get

        public T get()
        Specified by:
        get in interface Waitable<T>
      • dispose

        public void dispose()
        Specified by:
        dispose in interface Waitable<T>