Class Functions.FromSupplier<D,​R>

  • All Implemented Interfaces:
    java.util.function.Function<D,​R>
    Enclosing class:
    Functions

    static class Functions.FromSupplier<D,​R>
    extends java.lang.Object
    implements java.util.function.Function<D,​R>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.function.Supplier<R> supplier  
    • Constructor Summary

      Constructors 
      Constructor Description
      FromSupplier​(java.util.function.Supplier<R> supplier)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      R apply​(D ignore)  
      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

      • supplier

        private final java.util.function.Supplier<R> supplier
    • Constructor Detail

      • FromSupplier

        FromSupplier​(java.util.function.Supplier<R> supplier)
    • Method Detail

      • apply

        public R apply​(D ignore)
        Specified by:
        apply in interface java.util.function.Function<D,​R>
      • toString

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

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