Class Suppliers.SupplierComposition<F,​T>

  • All Implemented Interfaces:
    Supplier<T>, java.io.Serializable, java.util.function.Supplier<T>
    Enclosing class:
    Suppliers

    private static class Suppliers.SupplierComposition<F,​T>
    extends java.lang.Object
    implements Supplier<T>, java.io.Serializable
    • Constructor Detail

      • SupplierComposition

        SupplierComposition​(Function<? super F,​T> function,
                            Supplier<F> supplier)
    • Method Detail

      • get

        public T get()
        Description copied from interface: Supplier
        Retrieves an instance of the appropriate type. The returned object may or may not be a new instance, depending on the implementation.
        Specified by:
        get in interface Supplier<F>
        Specified by:
        get in interface java.util.function.Supplier<F>
        Returns:
        an instance of the appropriate type
      • equals

        public boolean equals​(@CheckForNull
                              java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

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

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