Package com.rits.cloning
Enum ICloningStrategy.Strategy
- java.lang.Object
-
- java.lang.Enum<ICloningStrategy.Strategy>
-
- com.rits.cloning.ICloningStrategy.Strategy
-
- All Implemented Interfaces:
Serializable
,Comparable<ICloningStrategy.Strategy>
- Enclosing interface:
- ICloningStrategy
public static enum ICloningStrategy.Strategy extends Enum<ICloningStrategy.Strategy>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description IGNORE
NULL_INSTEAD_OF_CLONE
SAME_INSTANCE_INSTEAD_OF_CLONE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ICloningStrategy.Strategy
valueOf(String name)
Returns the enum constant of this type with the specified name.static ICloningStrategy.Strategy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NULL_INSTEAD_OF_CLONE
public static final ICloningStrategy.Strategy NULL_INSTEAD_OF_CLONE
-
SAME_INSTANCE_INSTEAD_OF_CLONE
public static final ICloningStrategy.Strategy SAME_INSTANCE_INSTEAD_OF_CLONE
-
IGNORE
public static final ICloningStrategy.Strategy IGNORE
-
-
Method Detail
-
values
public static ICloningStrategy.Strategy[] 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 (ICloningStrategy.Strategy c : ICloningStrategy.Strategy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ICloningStrategy.Strategy 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
-
-