Enum Class MapMaker.Dummy

java.lang.Object
java.lang.Enum<MapMaker.Dummy>
com.google.common.collect.MapMaker.Dummy
All Implemented Interfaces:
Serializable, Comparable<MapMaker.Dummy>, Constable
Enclosing class:
MapMaker

static enum MapMaker.Dummy extends Enum<MapMaker.Dummy>
A dummy singleton value type used by Interners.

MapMakerInternalMap can optimize for memory usage in this case; see MapMakerInternalMap.createWithDummyValues(com.google.common.collect.MapMaker).

  • Enum Constant Details

  • Constructor Details

    • Dummy

      private Dummy()
  • Method Details

    • values

      public static MapMaker.Dummy[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static MapMaker.Dummy valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null