public class AnyClassMatcher extends Object implements Matcher
Matcher to match a specified class.
Usage ex.: new AnyClassMatcher(String.class).match("hello); Will return true
Usage ex.: new AnyClassMatcher(Integer.class).match("hello); Will return false
| Constructor and Description |
|---|
AnyClassMatcher(Class expectedClass) |
public AnyClassMatcher(Class expectedClass)
public boolean match(Object o)
MatcherComparing method
match in interface Matchero - The object that is needed to compare
true/false based on the matching result
Matcher.match(Object)Copyright © 2016. All rights reserved.