Class State.ListDiff

  • All Implemented Interfaces:
    Serializable
    Enclosing class:
    State

    public static class State.ListDiff
    extends Object
    implements Serializable
    A diff for an array or List.

    This diff is applied onto an existing array/List in the following manner:

    • diff, if any, is applied,
    • rpush, if any, is applied.
    • pull, if any, is applied.
    Since:
    5.9.5
    See Also:
    Serialized Form
    • Field Detail

      • isArray

        public boolean isArray
        Whether this State.ListDiff applies to an array (true) or a List (false).
      • diff

        public List<Object> diff
        If diff is not null, each element of the list is applied to the existing array/List. An element can be:
      • rpush

        public List<Object> rpush
        If rpush is not null, this is appended to the right of the existing array/List.
      • pull

        public List<Object> pull
        If pull is not null, this is removed from the existing array/List.
        Since:
        11.5
    • Constructor Detail

      • ListDiff

        public ListDiff()