Package com.google.common.base
Class Functions.ConstantFunction<E>
java.lang.Object
com.google.common.base.Functions.ConstantFunction<E>
- All Implemented Interfaces:
Function<Object,
,E> Serializable
,Function<Object,
E>
- Enclosing class:
Functions
private static class Functions.ConstantFunction<E>
extends Object
implements Function<Object,E>, Serializable
-
Field Details
-
value
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
ConstantFunction
-
-
Method Details
-
apply
-
equals
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() -
toString
-