public enum NullDelta extends Enum<NullDelta> implements Delta
Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Method and Description |
---|---|
DeltaAware |
merge(DeltaAware other)
Merge the current Delta instance with a given
DeltaAware instance, and return a coherent and complete
DeltaAware instance. |
static NullDelta |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NullDelta[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NullDelta INSTANCE
public static NullDelta[] values()
for (NullDelta c : NullDelta.values()) System.out.println(c);
public static NullDelta 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 DeltaAware merge(DeltaAware other)
Delta
DeltaAware
instance, and return a coherent and complete
DeltaAware
instance. Implementations should be able to deal with null values passed in, or values of a
different type from the expected DeltaAware instance. Usually the approach would be to ignore what is passed in,
create a new instance of the DeltaAware implementation that the current Delta implementation is written for, apply
changes and pass it back.Copyright © 2014 JBoss, a division of Red Hat. All Rights Reserved.