Class Functions.Partial<A,​B>

  • All Implemented Interfaces:
    java.util.function.Function<A,​Option<B>>
    Enclosing class:
    Functions

    static class Functions.Partial<A,​B>
    extends java.lang.Object
    implements java.util.function.Function<A,​Option<B>>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.function.Function<? super A,​? extends B> f  
      private java.util.function.Predicate<? super A> p  
    • Constructor Summary

      Constructors 
      Constructor Description
      Partial​(java.util.function.Predicate<? super A> p, java.util.function.Function<? super A,​? extends B> f)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Option<B> apply​(A a)  
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.function.Function

        andThen, compose
    • Field Detail

      • p

        private final java.util.function.Predicate<? super A> p
      • f

        private final java.util.function.Function<? super A,​? extends B> f
    • Constructor Detail

      • Partial

        Partial​(java.util.function.Predicate<? super A> p,
                java.util.function.Function<? super A,​? extends B> f)
    • Method Detail

      • apply

        public Option<B> apply​(A a)
        Specified by:
        apply in interface java.util.function.Function<A,​B>
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object