public class EquivalenceGraphUpdate extends Object
Represents the result of processing an equivalence assertion. One graph, containing the subject of the assertion will be updated, it will have either have had other graphs split out, other graphs merged in, or both.
Graphs split out are created. Graphs merged in are deleted.
If an assertion only changes internal edges in a graph, i.e. the actual membership of the graph is unchanged, then both created and updated are empty.
e.g. assuming a, b, c, d are separate to begin with:
| Modifier and Type | Class and Description |
|---|---|
static class |
EquivalenceGraphUpdate.Builder |
| Constructor and Description |
|---|
EquivalenceGraphUpdate(EquivalenceGraph updated,
Iterable<EquivalenceGraph> created,
Iterable<Id> deleted) |
| Modifier and Type | Method and Description |
|---|---|
static EquivalenceGraphUpdate.Builder |
builder(EquivalenceGraph updated)
Returns a
EquivalenceGraphUpdate.Builder for an EquivalenceGraphUpdate based on
the provided updated graph. |
boolean |
equals(Object that) |
com.google.common.collect.ImmutableSet<EquivalenceGraph> |
getAllGraphs()
Returns all the graphs resulting from this update.
|
com.google.common.collect.ImmutableSet<EquivalenceGraph> |
getCreated()
Returns the graphs created in this update because they've been split out
of the updated graph
|
com.google.common.collect.ImmutableSet<Id> |
getDeleted()
Returns the graphs deleted in this update because they've been merged
into the updated graph
|
EquivalenceGraph |
getUpdated()
Returns the graph updated in this update, containing the subject of the
assertion that caused this update.
|
int |
hashCode() |
String |
toString() |
public EquivalenceGraphUpdate(EquivalenceGraph updated, Iterable<EquivalenceGraph> created, Iterable<Id> deleted)
public static EquivalenceGraphUpdate.Builder builder(EquivalenceGraph updated)
EquivalenceGraphUpdate.Builder for an EquivalenceGraphUpdate based on
the provided updated graph.updated - - the graph updated in this update.EquivalenceGraphUpdate.Builder based on the updated graph.public EquivalenceGraph getUpdated()
public com.google.common.collect.ImmutableSet<EquivalenceGraph> getCreated()
public com.google.common.collect.ImmutableSet<EquivalenceGraph> getAllGraphs()
public com.google.common.collect.ImmutableSet<Id> getDeleted()
Copyright © 2014. All rights reserved.