Package com.google.common.base
Enum Suppliers.SupplierFunctionImpl
- java.lang.Object
-
- java.lang.Enum<Suppliers.SupplierFunctionImpl>
-
- com.google.common.base.Suppliers.SupplierFunctionImpl
-
- All Implemented Interfaces:
Function<Supplier<java.lang.Object>,java.lang.Object>
,Suppliers.SupplierFunction<java.lang.Object>
,java.io.Serializable
,java.lang.Comparable<Suppliers.SupplierFunctionImpl>
- Enclosing class:
- Suppliers
private static enum Suppliers.SupplierFunctionImpl extends java.lang.Enum<Suppliers.SupplierFunctionImpl> implements Suppliers.SupplierFunction<java.lang.Object>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
-
Constructor Summary
Constructors Modifier Constructor Description private
SupplierFunctionImpl()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
apply(Supplier<java.lang.Object> input)
Returns the result of applying this function toinput
.java.lang.String
toString()
static Suppliers.SupplierFunctionImpl
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Suppliers.SupplierFunctionImpl[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INSTANCE
public static final Suppliers.SupplierFunctionImpl INSTANCE
-
-
Method Detail
-
values
public static Suppliers.SupplierFunctionImpl[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Suppliers.SupplierFunctionImpl c : Suppliers.SupplierFunctionImpl.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Suppliers.SupplierFunctionImpl valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
apply
public java.lang.Object apply(Supplier<java.lang.Object> input)
Description copied from interface:Function
Returns the result of applying this function toinput
. This method is generally expected, but not absolutely required, to have the following properties:- Its execution does not cause any observable side effects.
- The computation is consistent with equals; that is,
Objects.equal
(a, b)
implies thatObjects.equal(function.apply(a), function.apply(b))
.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<Suppliers.SupplierFunctionImpl>
-
-