Class OptionalMatch<T>


  • public class OptionalMatch<T>
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) Optional<T> expected  
      (package private) T matched  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      T getMatch()  
      boolean match​(T other)  
      void reset()  
      • Methods inherited from class java.lang.Object

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

      • matched

        T matched
    • Constructor Detail

      • OptionalMatch

        OptionalMatch​(Optional<T> expected)
    • Method Detail

      • match

        public boolean match​(T other)
      • reset

        public void reset()
      • getMatch

        public T getMatch()