- java.lang.Object
-
- java.lang.Enum<KVTree.IteratorType>
-
- org.pcollections.KVTree.IteratorType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<KVTree.IteratorType>
private static enum KVTree.IteratorType extends java.lang.Enum<KVTree.IteratorType>
Whether an iterator returns entries or just keys. (This is a bit of a hack to letKVTree.fromEntryIterator(Iterator)
andKVTree.fromKeyIterator(Iterator)
share code. A cleaner alternative would be to wrap the key iterator in an entry iterator; but that would create lots of unnecessary Map.Entry instances.)
-
-
Constructor Summary
Constructors Modifier Constructor Description private
IteratorType()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static KVTree.IteratorType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static KVTree.IteratorType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ENTRY
public static final KVTree.IteratorType ENTRY
-
KEY
public static final KVTree.IteratorType KEY
-
-
Method Detail
-
values
public static KVTree.IteratorType[] 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 (KVTree.IteratorType c : KVTree.IteratorType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static KVTree.IteratorType 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
-
-