public enum ListFeature extends java.lang.Enum<ListFeature> implements Feature<java.util.List>
List.| Modifier and Type | Class and Description |
|---|---|
static interface |
ListFeature.Require |
| Enum Constant and Description |
|---|
GENERAL_PURPOSE |
REMOVE_OPERATIONS
Features supported by lists where only removal is allowed.
|
SUPPORTS_ADD_WITH_INDEX |
SUPPORTS_REMOVE_WITH_INDEX |
SUPPORTS_SET |
| Modifier and Type | Field and Description |
|---|---|
private java.util.Set<Feature<? super java.util.List>> |
implied |
| Modifier and Type | Method and Description |
|---|---|
java.util.Set<Feature<? super java.util.List>> |
getImpliedFeatures()
Returns the set of features that are implied by this feature.
|
static ListFeature |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ListFeature[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ListFeature SUPPORTS_SET
public static final ListFeature SUPPORTS_ADD_WITH_INDEX
public static final ListFeature SUPPORTS_REMOVE_WITH_INDEX
public static final ListFeature GENERAL_PURPOSE
public static final ListFeature REMOVE_OPERATIONS
private final java.util.Set<Feature<? super java.util.List>> implied
public static ListFeature[] values()
for (ListFeature c : ListFeature.values()) System.out.println(c);
public static ListFeature valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic java.util.Set<Feature<? super java.util.List>> getImpliedFeatures()
FeaturegetImpliedFeatures in interface Feature<java.util.List>