| Constructor and Description |
|---|
SetDiff() |
| Modifier and Type | Method and Description |
|---|---|
void |
applyTo(java.util.Set<? super E> set)
Applies the changes in this diff to the given set
|
abstract java.util.Set<E> |
getAdditions() |
abstract java.util.Set<E> |
getRemovals() |
boolean |
isEmpty()
Returns true if the diff has no added or removed elements.
|
java.util.Set<E> |
simulateOn(java.util.Set<E> set)
Returns a
Set showing what set would look like if
this diff were applied to it. |
java.lang.String |
toString() |
public abstract java.util.Set<E> getAdditions()
public abstract java.util.Set<E> getRemovals()
public boolean isEmpty()
public void applyTo(java.util.Set<? super E> set)
set - the set to which the diff will be appliedpublic java.util.Set<E> simulateOn(java.util.Set<E> set)
Set showing what set would look like if
this diff were applied to it. The passed-in list is presumed to contain
all elements in getRemovals(), and none of the elements in
getAdditions().
Note:the returned list is only guaranteed to be valid while the passed in set remains unchanged.
set - the set over which the diff will be simulatedSet showing what set would look like if it
were passed to the applyTo(Set) method.public java.lang.String toString()
toString in class java.lang.Object
Copyright (c) 2000, 2018 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.