Class ModifyKindSet


  • public class ModifyKindSet
    extends Object
    The set of modify operations contained in a changelog.
    See Also:
    ModifyKind
    • Field Detail

      • INSERT_ONLY

        public static final ModifyKindSet INSERT_ONLY
        Insert-only modify kind set.
      • ALL_CHANGES

        public static final ModifyKindSet ALL_CHANGES
        A modify kind set contains all change operations.
    • Method Detail

      • contains

        public boolean contains​(ModifyKind kind)
      • containsOnly

        public boolean containsOnly​(ModifyKind kind)
      • isInsertOnly

        public boolean isInsertOnly()
      • size

        public int size()
      • isEmpty

        public boolean isEmpty()
      • minus

        public ModifyKindSet minus​(ModifyKindSet other)
        Returns a new set of ModifyKind which is this set minus the other set, i.e. this.kinds - that.kinds. For example: [I,U,D] minus [I] = [U,D] [I,U] minus [U,D] = [I] [I,U,D] minus [I,U,D] = []
      • intersect

        public ModifyKindSet intersect​(ModifyKindSet other)
        Returns a new ModifyKindSet with all kinds set in both this set and in another set.
      • union

        public ModifyKindSet union​(ModifyKindSet other)
        Returns a new ModifyKindSet with the union of the other ModifyKindSet.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object