public class ConstantMatcher extends Object implements CredentialsMatcher
Constructor and Description |
---|
ConstantMatcher(boolean match)
Constructs a new instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
matches(Credentials item)
Evaluates the matcher for the specified credentials.
|
String |
toString() |
public ConstantMatcher(boolean match)
match
- whether to match or not.public boolean matches(@NonNull Credentials item)
matches
in interface CredentialsMatcher
item
- the specified credentials.true
if and only if the specified credentials match.Copyright © 2014. All rights reserved.