public final class Differences
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
java.util.stream.Stream<Pair<java.lang.String,Node>> |
addedMetadata()
Gets all added metadata.
|
java.util.stream.Stream<Shape> |
addedShapes()
Gets all added shapes.
|
<T extends Shape> |
addedShapes(java.lang.Class<T> shapeType)
Gets all of the added shapes of a specific type.
|
java.util.stream.Stream<ChangedMetadata> |
changedMetadata()
Gets a stream of all changed metadata.
|
java.util.stream.Stream<ChangedShape<Shape>> |
changedShapes()
Gets all changed shapes.
|
<T extends Shape> |
changedShapes(java.lang.Class<T> type)
Gets all changed shapes of a specific type.
|
boolean |
equals(java.lang.Object o) |
Model |
getNewModel()
Gets the new model.
|
Model |
getOldModel()
Gets the old model.
|
int |
hashCode() |
java.util.stream.Stream<Pair<java.lang.String,Node>> |
removedMetadata()
Gets all removed metadata.
|
java.util.stream.Stream<Shape> |
removedShapes()
Gets all removed shapes.
|
<T extends Shape> |
removedShapes(java.lang.Class<T> shapeType)
Gets all of the removed shapes of a specific type.
|
public Model getOldModel()
public Model getNewModel()
public java.util.stream.Stream<Shape> addedShapes()
public <T extends Shape> java.util.stream.Stream<T> addedShapes(java.lang.Class<T> shapeType)
T
- Type of shape.shapeType
- Type of shape to find.public java.util.stream.Stream<Pair<java.lang.String,Node>> addedMetadata()
Each Pair returned contains the name of the metadata key on the left of the Pair and the metadata value on the right.
public java.util.stream.Stream<Shape> removedShapes()
public <T extends Shape> java.util.stream.Stream<T> removedShapes(java.lang.Class<T> shapeType)
T
- Type of shape.shapeType
- Type of shape to find.public java.util.stream.Stream<Pair<java.lang.String,Node>> removedMetadata()
Each Pair returned contains the name of the metadata key on the left of the Pair and the metadata value on the right.
public java.util.stream.Stream<ChangedShape<Shape>> changedShapes()
public <T extends Shape> java.util.stream.Stream<ChangedShape<T>> changedShapes(java.lang.Class<T> type)
T
- Type of shape.type
- Type of shape to find.public java.util.stream.Stream<ChangedMetadata> changedMetadata()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object