Package org.organicdesign.fp.function
Enum Fn1.ConstObjObj
- java.lang.Object
-
- java.lang.Enum<Fn1.ConstObjObj>
-
- org.organicdesign.fp.function.Fn1.ConstObjObj
-
- All Implemented Interfaces:
Serializable
,Comparable<Fn1.ConstObjObj>
,Consumer<Object>
,Function<Object,Object>
,Fn1<Object,Object>
public static enum Fn1.ConstObjObj extends Enum<Fn1.ConstObjObj> implements Fn1<Object,Object>
Constant functions that take an Object and return an Object
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.organicdesign.fp.function.Fn1
Fn1.BooleanCombiner, Fn1.ConstObjBool, Fn1.ConstObjObj
-
-
Enum Constant Summary
Enum Constants Enum Constant Description IDENTITY
The Identity function
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Fn1.ConstObjObj
valueOf(String name)
Returns the enum constant of this type with the specified name.static Fn1.ConstObjObj[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
IDENTITY
public static final Fn1.ConstObjObj IDENTITY
The Identity function
-
-
Method Detail
-
values
public static Fn1.ConstObjObj[] 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 (Fn1.ConstObjObj c : Fn1.ConstObjObj.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Fn1.ConstObjObj valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-