public class IdMatcher extends Object implements CredentialsMatcher, CredentialsMatcher.CQL
IdCredentials
and have the specified IdCredentials.getId()
.CredentialsMatcher.CQL
Constructor and Description |
---|
IdMatcher(String id)
Constructs a new instance.
|
Modifier and Type | Method and Description |
---|---|
String |
describe()
Describes this matcher in terms of a java-bean style query language
|
boolean |
equals(Object o) |
int |
hashCode() |
boolean |
matches(Credentials item)
Evaluates the matcher for the specified credentials.
|
String |
toString() |
public IdMatcher(@NonNull String id)
id
- the id to match.public boolean matches(@NonNull Credentials item)
matches
in interface CredentialsMatcher
item
- the specified credentials.true
if and only if the specified credentials match.public String describe()
describe
in interface CredentialsMatcher.CQL
null
if the matcher cannot be expressed
in CQL.Copyright © 2016–2021. All rights reserved.