Class Suppliers.SupplierComposition<F,T>

java.lang.Object
com.google.common.base.Suppliers.SupplierComposition<F,T>
All Implemented Interfaces:
Supplier<T>, Serializable, Supplier<T>
Enclosing class:
Suppliers

private static class Suppliers.SupplierComposition<F,T> extends Object implements Supplier<T>, Serializable
  • Field Details

  • Constructor Details

    • SupplierComposition

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

    • 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 Supplier<F>
      Returns:
      an instance of the appropriate type
    • equals

      public boolean equals(@CheckForNull Object obj)
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object