Enum HierarchyTree.HierarchyRelationship
- java.lang.Object
-
- java.lang.Enum<HierarchyTree.HierarchyRelationship>
-
- org.optaweb.employeerostering.util.HierarchyTree.HierarchyRelationship
-
- All Implemented Interfaces:
Serializable,Comparable<HierarchyTree.HierarchyRelationship>
- Enclosing class:
- HierarchyTree<K,V>
public static enum HierarchyTree.HierarchyRelationship extends Enum<HierarchyTree.HierarchyRelationship>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description HAS_NO_DIRECT_RELATIONIS_ABOVEIS_BELOWIS_THE_SAME_AS
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static HierarchyTree.HierarchyRelationshipvalueOf(String name)Returns the enum constant of this type with the specified name.static HierarchyTree.HierarchyRelationship[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
IS_ABOVE
public static final HierarchyTree.HierarchyRelationship IS_ABOVE
-
IS_BELOW
public static final HierarchyTree.HierarchyRelationship IS_BELOW
-
IS_THE_SAME_AS
public static final HierarchyTree.HierarchyRelationship IS_THE_SAME_AS
-
HAS_NO_DIRECT_RELATION
public static final HierarchyTree.HierarchyRelationship HAS_NO_DIRECT_RELATION
-
-
Method Detail
-
values
public static HierarchyTree.HierarchyRelationship[] 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 (HierarchyTree.HierarchyRelationship c : HierarchyTree.HierarchyRelationship.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HierarchyTree.HierarchyRelationship 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
-
-