java.lang.Object
de.serra.so_dirty.difference.MapDifferenceNode
- Alle implementierten Schnittstellen:
DifferenceNode,Iterable<DifferenceNode>
Differences of a
Map.- Autor:
- Peter Lamby
-
Verschachtelte Klassen - Übersicht
Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen de.serra.so_dirty.difference.DifferenceNode
DifferenceNode.EmptyDifferenceNode -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungMapDifferenceNode(String name, @Nullable Set<DifferenceType> types, int removedKeys, int addedKeys, Map<@Nullable Object, DifferenceNode> differentValues) Constructs. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibung@Nullable DifferenceNodegetChildNullable(String name) Gets a direct child node in the object tree.getName()The relative path inside the object tree.getTypes()Describes in what way the current node changed.iterator()<T> Tvisit(de.serra.so_dirty.difference.visit.DifferenceVisitor<T> visitor, DifferenceVisit<T> visit) Visits the current node.Von Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden de.serra.so_dirty.difference.DifferenceNode
get, getChild, getTypesRecursive, isDifferent, isDifferent, isDifferentRecursiveVon Schnittstelle geerbte Methoden java.lang.Iterable
forEach, spliterator
-
Konstruktordetails
-
MapDifferenceNode
public MapDifferenceNode(String name, @Nullable Set<DifferenceType> types, int removedKeys, int addedKeys, Map<@Nullable Object, DifferenceNode> differentValues) Constructs.- Parameter:
name- The relative path of this difference.types- The types of difference for this node. Can benull.removedKeys- How many keys were removed.addedKeys- How many keys were added.differentValues- The map entries where the value has changed.
-
-
Methodendetails
-
iterator
- Angegeben von:
iteratorin SchnittstelleIterable<DifferenceNode>
-
visit
public <T> T visit(de.serra.so_dirty.difference.visit.DifferenceVisitor<T> visitor, DifferenceVisit<T> visit) Beschreibung aus Schnittstelle kopiert:DifferenceNodeVisits the current node.The children will be visited after
thisnode has been visited.The visiting of children can be prevented by calling
DifferenceVisit.dontGoDeeper()usually from thevisitor.- Angegeben von:
visitin SchnittstelleDifferenceNode- Typparameter:
T- The return type of the visit.- Parameter:
visitor- The visitor.visit- The visit.- Gibt zurück:
- The
DifferenceVisit.value().
-
getName
Beschreibung aus Schnittstelle kopiert:DifferenceNodeThe relative path inside the object tree.- Angegeben von:
getNamein SchnittstelleDifferenceNode- Gibt zurück:
- The path.
-
getTypes
Beschreibung aus Schnittstelle kopiert:DifferenceNodeDescribes in what way the current node changed. Returns an empty set if there are no changes.- Angegeben von:
getTypesin SchnittstelleDifferenceNode- Gibt zurück:
- The types of change if any.
-
getChildNullable
Beschreibung aus Schnittstelle kopiert:DifferenceNodeGets a direct child node in the object tree.Will return
nullif the child does not exist.- Angegeben von:
getChildNullablein SchnittstelleDifferenceNode- Parameter:
name- The name of the child node.- Gibt zurück:
- The result of the desired node. May return
null.
-