public class ConstantMatcher extends Object implements StringMatcher
| Constructor and Description |
|---|
ConstantMatcher(boolean matches)
Creates a new ConstantMatcher that always returns the given result.
|
public ConstantMatcher(boolean matches)
public boolean matches(String string)
StringMatchermatches in interface StringMatcherstring - the string to match.Copyright © 2015. All Rights Reserved.