Class AddToCollectionOperation

java.lang.Object
com.gigaspaces.sync.change.AddToCollectionOperation

public class AddToCollectionOperation extends Object
Represents a change operation which correlate with a ChangeSet.addToCollection(String, java.io.Serializable) invocation.
Since:
9.5
Author:
eitany
  • Field Details

  • Method Details

    • represents

      public static boolean represents(ChangeOperation changeOperation)
      Returns:
      true if this operation type represents the given change operation.
    • getPath

      public static String getPath(ChangeOperation changeOperation)
      Returns:
      the path the operation changed.
    • getItem

      public static Serializable getItem(ChangeOperation changeOperation)
      Returns:
      the item that was added to the collection
    • isChanged

      public static boolean isChanged(ChangeOperationResult changeOperationResult)
      Returns:
      the return value of the Collection.add(Object) operation that was applied.
      Since:
      9.7
    • getNewSize

      public static int getNewSize(ChangeOperationResult changeOperationResult)
      Returns:
      the size of the collection after the Collection.add(Object) operation that was applied.
      Since:
      9.7