|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<MapFeature>
com.google.common.collect.testing.features.MapFeature
public enum MapFeature
Optional features of classes derived from Map
.
This class is GWT compatible.
Nested Class Summary | |
---|---|
static interface |
MapFeature.Require
|
Enum Constant Summary | |
---|---|
ALLOWS_NULL_KEYS
|
|
ALLOWS_NULL_QUERIES
The map does not throw NullPointerException on calls such as
containsKey(null) , get(null) , or remove(null) . |
|
ALLOWS_NULL_VALUES
|
|
FAILS_FAST_ON_CONCURRENT_MODIFICATION
|
|
GENERAL_PURPOSE
|
|
REJECTS_DUPLICATES_AT_CREATION
Indicates that the constructor or factory method of a map, usually an immutable map, throws an IllegalArgumentException when presented
with duplicate keys instead of discarding all but one. |
|
REMOVE_OPERATIONS
Features supported by maps where only removal is allowed. |
|
RESTRICTS_KEYS
|
|
RESTRICTS_VALUES
|
|
SUPPORTS_CLEAR
|
|
SUPPORTS_PUT
|
|
SUPPORTS_PUT_ALL
|
|
SUPPORTS_REMOVE
|
Method Summary | |
---|---|
Set<Feature<? super Map>> |
getImpliedFeatures()
Returns the set of features that are implied by this feature. |
static MapFeature |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static MapFeature[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final MapFeature ALLOWS_NULL_QUERIES
NullPointerException
on calls such as
containsKey(null)
, get(null)
, or remove(null)
.
public static final MapFeature ALLOWS_NULL_KEYS
public static final MapFeature ALLOWS_NULL_VALUES
public static final MapFeature RESTRICTS_KEYS
public static final MapFeature RESTRICTS_VALUES
public static final MapFeature SUPPORTS_PUT
public static final MapFeature SUPPORTS_PUT_ALL
public static final MapFeature SUPPORTS_REMOVE
public static final MapFeature SUPPORTS_CLEAR
public static final MapFeature FAILS_FAST_ON_CONCURRENT_MODIFICATION
public static final MapFeature REJECTS_DUPLICATES_AT_CREATION
IllegalArgumentException
when presented
with duplicate keys instead of discarding all but one.
public static final MapFeature GENERAL_PURPOSE
public static final MapFeature REMOVE_OPERATIONS
Method Detail |
---|
public static MapFeature[] values()
for (MapFeature c : MapFeature.values()) System.out.println(c);
public static MapFeature valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic Set<Feature<? super Map>> getImpliedFeatures()
Feature
getImpliedFeatures
in interface Feature<Map>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |