Enum StructureState
- java.lang.Object
-
- java.lang.Enum<StructureState>
-
- de.hybris.platform.patchesdemo.structure.StructureState
-
- All Implemented Interfaces:
StructureState,java.io.Serializable,java.lang.Comparable<StructureState>
public enum StructureState extends java.lang.Enum<StructureState> implements StructureState
Enumeration that defines structure state; it may be used in different objects to indicate for which milestone given object was introduced.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisAfter(StructureState structureState)Checks if instance of given structure state is after structure state passed in method.static StructureStatevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static StructureState[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
V1
public static final StructureState V1
-
V2
public static final StructureState V2
-
V3
public static final StructureState V3
-
LAST
public static final StructureState LAST
-
-
Method Detail
-
values
public static StructureState[] 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 (StructureState c : StructureState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static StructureState 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
-
isAfter
public boolean isAfter(StructureState structureState)
Description copied from interface:StructureStateChecks if instance of given structure state is after structure state passed in method.- Specified by:
isAfterin interfaceStructureState- Parameters:
structureState-StructureState- Returns:
trueif instance of given structure state is after structure state passed in method,falseotherwise
-
-