Package com.google.caliper.memory
Enum ObjectVisitor.Traversal
- java.lang.Object
-
- java.lang.Enum<ObjectVisitor.Traversal>
-
- com.google.caliper.memory.ObjectVisitor.Traversal
-
- All Implemented Interfaces:
Serializable,Comparable<ObjectVisitor.Traversal>
- Enclosing interface:
- ObjectVisitor<T>
public static enum ObjectVisitor.Traversal extends Enum<ObjectVisitor.Traversal>
Constants that denote how the traversal of a given object (chain) should continue.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ObjectVisitor.TraversalvalueOf(String name)Returns the enum constant of this type with the specified name.static ObjectVisitor.Traversal[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EXPLORE
public static final ObjectVisitor.Traversal EXPLORE
The visited object should be further explored.
-
SKIP
public static final ObjectVisitor.Traversal SKIP
The visited object should not be explored.
-
-
Method Detail
-
values
public static ObjectVisitor.Traversal[] 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 (ObjectVisitor.Traversal c : ObjectVisitor.Traversal.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ObjectVisitor.Traversal 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
-
-