Package com.google.caliper.memory
Enum ObjectExplorer.Feature
- java.lang.Object
-
- java.lang.Enum<ObjectExplorer.Feature>
-
- com.google.caliper.memory.ObjectExplorer.Feature
-
- All Implemented Interfaces:
Serializable,Comparable<ObjectExplorer.Feature>
- Enclosing class:
- ObjectExplorer
public static enum ObjectExplorer.Feature extends Enum<ObjectExplorer.Feature>
Enumeration of features that may be optionally requested for an object traversal.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description VISIT_NULLNull references should be visited.VISIT_PRIMITIVESPrimitive values should be visited.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ObjectExplorer.FeaturevalueOf(String name)Returns the enum constant of this type with the specified name.static ObjectExplorer.Feature[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
VISIT_NULL
public static final ObjectExplorer.Feature VISIT_NULL
Null references should be visited.
-
VISIT_PRIMITIVES
public static final ObjectExplorer.Feature VISIT_PRIMITIVES
Primitive values should be visited.
-
-
Method Detail
-
values
public static ObjectExplorer.Feature[] 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 (ObjectExplorer.Feature c : ObjectExplorer.Feature.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ObjectExplorer.Feature 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
-
-