|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Matcher<T>
Useful for generated classes, which don't override the equals method (e.g. some JAXB class generators) or if a custom matching algorithm is needed.
Method Summary | |
---|---|
boolean |
equals(T a,
T b)
|
Class<T> |
getType()
TODO: needed? |
int |
hashCode(T t)
|
String |
toString(T t)
|
void |
verify(T t)
Verifies that the specified object can be used with this matcher. |
Method Detail |
---|
void verify(T t) throws MatchingException
t
- the object to test
MatchingException
int hashCode(T t)
boolean equals(T a, T b)
String toString(T t)
Class<T> getType()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |