org.jjoost.collections
Enum MultiMapNesting.Type

java.lang.Object
  extended by java.lang.Enum<MultiMapNesting.Type>
      extended by org.jjoost.collections.MultiMapNesting.Type
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<MultiMapNesting.Type>
Enclosing class:
MultiMapNesting<V>

public static enum MultiMapNesting.Type
extends java.lang.Enum<MultiMapNesting.Type>

An enumeration of the nesting types for MultiMap


Enum Constant Summary
INLINE
          Store the values for duplicates keys simply as extra entries using the same mechanism as an equivalent Map would use to store its values.
NESTED
          Store the values for duplicates keys in a nested Set.
 
Method Summary
static MultiMapNesting.Type valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static MultiMapNesting.Type[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

INLINE

public static final MultiMapNesting.Type INLINE
Store the values for duplicates keys simply as extra entries using the same mechanism as an equivalent Map would use to store its values. Typically this will be more efficient than NESTED for small numbers of duplicate keys.


NESTED

public static final MultiMapNesting.Type NESTED
Store the values for duplicates keys in a nested Set. Typically this will be more efficient than INLINE for moderate to large average numbers of duplicate keys.

Method Detail

values

public static MultiMapNesting.Type[] 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 (MultiMapNesting.Type c : MultiMapNesting.Type.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static MultiMapNesting.Type 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 name
java.lang.NullPointerException - if the argument is null