Package com.google.common.collect
Enum MapMaker.Dummy
- java.lang.Object
-
- java.lang.Enum<MapMaker.Dummy>
-
- com.google.common.collect.MapMaker.Dummy
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<MapMaker.Dummy>
- Enclosing class:
- MapMaker
static enum MapMaker.Dummy extends java.lang.Enum<MapMaker.Dummy>
A dummy singleton value type used byInterners
.MapMakerInternalMap
can optimize for memory usage in this case; seeMapMakerInternalMap.createWithDummyValues(com.google.common.collect.MapMaker)
.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description VALUE
-
Constructor Summary
Constructors Modifier Constructor Description private
Dummy()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MapMaker.Dummy
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static MapMaker.Dummy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
VALUE
public static final MapMaker.Dummy VALUE
-
-
Method Detail
-
values
public static MapMaker.Dummy[] 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 (MapMaker.Dummy c : MapMaker.Dummy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MapMaker.Dummy 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
-
-