File tree Expand file tree Collapse file tree 5 files changed +13
-13
lines changed
main/java/de/danielbechler/diff/node
test/java/de/danielbechler/diff Expand file tree Collapse file tree 5 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -56,13 +56,13 @@ public Collection<Node> getChanges()
5656 }
5757
5858 @ Override
59- public boolean isCollectionDifference ()
59+ public boolean isCollectionNode ()
6060 {
6161 return true ;
6262 }
6363
6464 @ Override
65- public CollectionNode toCollectionDifference ()
65+ public CollectionNode toCollectionNode ()
6666 {
6767 return this ;
6868 }
Original file line number Diff line number Diff line change @@ -137,22 +137,22 @@ public Element getPathElement()
137137 return accessor .getPathElement ();
138138 }
139139
140- public boolean isCollectionDifference ()
140+ public boolean isCollectionNode ()
141141 {
142142 return false ;
143143 }
144144
145- public CollectionNode toCollectionDifference ()
145+ public CollectionNode toCollectionNode ()
146146 {
147147 throw new UnsupportedOperationException ();
148148 }
149149
150- public boolean isMapDifference ()
150+ public boolean isMapNode ()
151151 {
152152 return false ;
153153 }
154154
155- public MapNode toMapDifference ()
155+ public MapNode toMapNode ()
156156 {
157157 throw new UnsupportedOperationException ();
158158 }
Original file line number Diff line number Diff line change @@ -81,13 +81,13 @@ private int indexOf(final Object key)
8181 }
8282
8383 @ Override
84- public final boolean isMapDifference ()
84+ public final boolean isMapNode ()
8585 {
8686 return true ;
8787 }
8888
8989 @ Override
90- public final MapNode toMapDifference ()
90+ public final MapNode toMapNode ()
9191 {
9292 return this ;
9393 }
Original file line number Diff line number Diff line change @@ -103,13 +103,13 @@ public enum State
103103 /** Convenience method for <code>{@link #getState()} == {@link State#CIRCULAR}</code> */
104104 boolean isCircular ();
105105
106- boolean isCollectionDifference ();
106+ boolean isCollectionNode ();
107107
108- CollectionNode toCollectionDifference ();
108+ CollectionNode toCollectionNode ();
109109
110- boolean isMapDifference ();
110+ boolean isMapNode ();
111111
112- MapNode toMapDifference ();
112+ MapNode toMapNode ();
113113
114114 /** @return Returns the type of the property represented by this node, or null if unavailable. */
115115 Class <?> getType ();
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ public void testWithAdditionOfSimpleTypeToWorkingMap()
4747 working .put ("foo" , "bar" );
4848
4949 final MapNode node = differ .compare (working , base );
50- assertThat (node .isMapDifference (), is (true ));
50+ assertThat (node .isMapNode (), is (true ));
5151 assertThat (node .hasChildren (), is (true ));
5252 assertThat (node .getState (), is (Node .State .CHANGED ));
5353
You can’t perform that action at this time.
0 commit comments