public interface DeepCompare
限定符和类型 | 方法和说明 |
---|---|
void |
deepCompare(DeepCompare other,
TreePath myLocation) |
void deepCompare(DeepCompare other, TreePath myLocation) throws DeepInequalityException
other
- the other comparand that's being compared to memyLocation
- the path that got to me. In the root, myLocation is null. To
process the scalar foo
field of the root we will make a
recursive call with a TreePath
whose fieldName
is
"bar"
and whose index
is -1 and whose parent
is null
. To process the plural bar
field
of the root we will make a recursive call with a TreePath
whose fieldName is "foo"
and whose index
is -1 and
whose parent
is also null
.DeepInequalityException
Copyright © 2009 The Apache Software Foundation