Class IncrementOperation

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

public class IncrementOperation extends Object
Represents a change operation which correlate with a ChangeSet.increment(String, int) or ChangeSet.decrement(String, int) 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.
    • getDelta

      public static Number getDelta(ChangeOperation changeOperation)
      Returns:
      the delta that was incremented (negative for decrement operation).
    • getNewValue

      public static Number getNewValue(ChangeOperationResult changeOperationResult)
      Returns:
      the new value of the property after the increment operation was applied
      Since:
      9.7