Package com.google.common.base
Class Functions.SupplierFunction<F,T>
- java.lang.Object
-
- com.google.common.base.Functions.SupplierFunction<F,T>
-
-
Field Summary
Fields Modifier and Type Field Description private static long
serialVersionUID
private Supplier<T>
supplier
-
Constructor Summary
Constructors Modifier Constructor Description private
SupplierFunction(Supplier<T> supplier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
apply(F input)
boolean
equals(java.lang.Object obj)
May returntrue
ifobject
is aFunction
that behaves identically to this function.int
hashCode()
java.lang.String
toString()
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Method Detail
-
equals
public boolean equals(@CheckForNull java.lang.Object obj)
Description copied from interface:Function
May returntrue
ifobject
is aFunction
that behaves identically to this function.Warning: do not depend on the behavior of this method.
Historically,
Function
instances in this library have implemented this method to recognize certain cases where distinctFunction
instances would in fact behave identically. However, as code migrates tojava.util.function
, that behavior will disappear. It is best not to depend on it.
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-