Class P2s.Lazy<A,​B>

  • Enclosing class:
    P2s

    private static final class P2s.Lazy<A,​B>
    extends P2<A,​B>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private P2<A,​B> evaluation  
      private java.util.function.Supplier<P2<A,​B>> expression  
    • Constructor Summary

      Constructors 
      Constructor Description
      Lazy​(java.util.function.Supplier<P2<A,​B>> p2)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private P2<A,​B> _evaluate()  
      boolean equals​(java.lang.Object obj)  
      int hashCode()  
      (package private) <R> R match​(java.util.function.BiFunction<A,​B,​R> P2)  
      java.lang.String toString()  
      • Methods inherited from class org.derive4j.processor.P2

        _1, _2, p2
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • expression

        private volatile java.util.function.Supplier<P2<A,​B>> expression
      • evaluation

        private P2<A,​B> evaluation
    • Constructor Detail

      • Lazy

        Lazy​(java.util.function.Supplier<P2<A,​B>> p2)
    • Method Detail

      • _evaluate

        private P2<A,​B> _evaluate()
      • match

        <R> R match​(java.util.function.BiFunction<A,​B,​R> P2)
        Specified by:
        match in class P2<A,​B>
      • equals

        public boolean equals​(java.lang.Object obj)
        Specified by:
        equals in class P2<A,​B>
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in class P2<A,​B>
      • toString

        public java.lang.String toString()
        Specified by:
        toString in class P2<A,​B>