Package com.hybris.cockpitng.tree.util
Enum TreeUtils.SearchDepth
- java.lang.Object
-
- java.lang.Enum<TreeUtils.SearchDepth>
-
- com.hybris.cockpitng.tree.util.TreeUtils.SearchDepth
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<TreeUtils.SearchDepth>
- Enclosing class:
- TreeUtils
public static enum TreeUtils.SearchDepth extends java.lang.Enum<TreeUtils.SearchDepth>
Determines whether filtering should be done up until first match or without any limitations
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TreeUtils.SearchDepthvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static TreeUtils.SearchDepth[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SHALLOW
public static final TreeUtils.SearchDepth SHALLOW
Filtering up until first match - children of first matching node are not filtered at all
-
DEEP
public static final TreeUtils.SearchDepth DEEP
Nodes are filtered on all levels
-
-
Method Detail
-
values
public static TreeUtils.SearchDepth[] 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 (TreeUtils.SearchDepth c : TreeUtils.SearchDepth.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TreeUtils.SearchDepth 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
-
-