org.infinispan.atomic
Enum NullDelta

java.lang.Object
  extended by java.lang.Enum<NullDelta>
      extended by org.infinispan.atomic.NullDelta
All Implemented Interfaces:
Serializable, Comparable<NullDelta>, Delta

public enum NullDelta
extends Enum<NullDelta>
implements Delta

Represents no changes.

Since:
4.0
Author:
Manik Surtani (manik AT jboss DOT org), Galder ZamarreƱo

Enum Constant Summary
INSTANCE
           
 
Method Summary
 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.
 
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

INSTANCE

public static final NullDelta INSTANCE
Method Detail

values

public static NullDelta[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (NullDelta c : NullDelta.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

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

merge

public DeltaAware merge(DeltaAware other)
Description copied from interface: Delta
Merge the current Delta instance with a given 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.

Specified by:
merge in interface Delta
Parameters:
other - instance to merge with, or null if no merging is needed
Returns:
a fully coherent and usable instance of DeltaAware which may or may not be the same instance passed in

-->

Copyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.