public enum Flag extends Enum<Flag>
FORCE_RETURN_VALUE
- By default, previously existing values for Map
operations are not
returned. E.g. Map.put(Object, Object)
does not return
the previous value associated with the key. By applying this flag, this default
behavior is overridden for the scope of a single invocation, and the previous
existing value is returned.Enum Constant and Description |
---|
FORCE_RETURN_VALUE
By default, previously existing values for
Map operations are not returned. |
Modifier and Type | Method and Description |
---|---|
int |
getFlagInt() |
static Flag |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Flag[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Flag FORCE_RETURN_VALUE
Map
operations are not returned. E.g. Map.put(Object, Object)
does not return the previous value associated with the key.
By applying this flag, this default behavior is overridden for the scope of a single invocation, and the previous
existing value is returned.public static Flag[] values()
for (Flag c : Flag.values()) System.out.println(c);
public static Flag valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullpublic int getFlagInt()
Copyright © 2013 JBoss, a division of Red Hat. All Rights Reserved.