public abstract static class TreeComparison.SameType<T> extends Object
An API for comparing trees which have been mapped to the same type.
Constructor and Description |
---|
SameType() |
Modifier and Type | Method and Description |
---|---|
abstract void |
assertEqual()
Asserts that the trees are equal.
|
abstract TreeComparison.SameType<T> |
decorateErrorsWith(Function<? super T,String> toString)
Decorates errors thrown by any assertions with the given functions.
|
abstract boolean |
isEqual()
Returns true if the trees are equal.
|
abstract <R> TreeComparison.SameType<R> |
map(Function<? super T,? extends R> mapper)
Maps this SameType to some other type.
|
public abstract boolean isEqual()
Returns true if the trees are equal.
public abstract void assertEqual()
Asserts that the trees are equal.
public abstract TreeComparison.SameType<T> decorateErrorsWith(Function<? super T,String> toString)
Decorates errors thrown by any assertions with the given functions.
public abstract <R> TreeComparison.SameType<R> map(Function<? super T,? extends R> mapper)
Maps this SameType to some other type.