public class ModifyKindSet extends Object
ModifyKind
Modifier and Type | Class and Description |
---|---|
static class |
ModifyKindSet.Builder
Builder for configuring and creating instances of
ModifyKindSet . |
Modifier and Type | Field and Description |
---|---|
static ModifyKindSet |
ALL_CHANGES
A modify kind set contains all change operations.
|
static ModifyKindSet |
INSERT_ONLY
Insert-only modify kind set.
|
Modifier and Type | Method and Description |
---|---|
boolean |
contains(ModifyKind kind) |
boolean |
containsOnly(ModifyKind kind) |
boolean |
equals(Object o) |
Set<ModifyKind> |
getContainedKinds() |
int |
hashCode() |
ModifyKindSet |
intersect(ModifyKindSet other)
Returns a new ModifyKindSet with all kinds set in both this set and in another set.
|
boolean |
isEmpty() |
boolean |
isInsertOnly() |
ModifyKindSet |
minus(ModifyKindSet other)
Returns a new set of ModifyKind which is this set minus the other set, i.e.
|
static ModifyKindSet.Builder |
newBuilder()
Builder for configuring and creating instances of
ModifyKindSet . |
int |
size() |
ChangelogMode |
toChangelogMode()
Returns the default
ChangelogMode from this ModifyKindSet . |
String |
toString() |
static ModifyKindSet |
union(ModifyKindSet... modifyKindSets)
Returns the union of a number of ModifyKindSets.
|
ModifyKindSet |
union(ModifyKindSet other)
Returns a new ModifyKindSet with the union of the other ModifyKindSet.
|
public static final ModifyKindSet INSERT_ONLY
public static final ModifyKindSet ALL_CHANGES
public Set<ModifyKind> getContainedKinds()
public boolean contains(ModifyKind kind)
public boolean containsOnly(ModifyKind kind)
public boolean isInsertOnly()
public int size()
public boolean isEmpty()
public ModifyKindSet minus(ModifyKindSet other)
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] = []public ModifyKindSet intersect(ModifyKindSet other)
public ModifyKindSet union(ModifyKindSet other)
public ChangelogMode toChangelogMode()
ChangelogMode
from this ModifyKindSet
.public static ModifyKindSet union(ModifyKindSet... modifyKindSets)
public static ModifyKindSet.Builder newBuilder()
ModifyKindSet
.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.