public final class EqualsFilter extends AttributeFilter
Constructor and Description |
---|
EqualsFilter(Attribute attr)
Public only as an artifact of the implementation.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accept(ConnectorObject obj)
Determines whether the specified
ConnectorObject
contains an attribute that has the same name
and contains a value that is equals the value of
the attribute that FilterBuilder
placed into this filter. |
boolean |
accept(EmbeddedObject obj)
Determines whether the specified
EmbeddedObject
matches this filter. |
java.lang.String |
toString() |
getAttribute, getName, isPresent
public EqualsFilter(Attribute attr)
FilterBuilder
to create an instance of EqualsFilter
.public boolean accept(ConnectorObject obj)
ConnectorObject
contains an attribute that has the same name
and contains a value that is equals the value of
the attribute that FilterBuilder
placed into this filter.
Note that in the case of a multi-valued attribute, equality of values means that:
obj
- - The specified ConnectorObject
.true
if the object matches
(that is, satisfies all selection criteria of) this filter;
otherwise false
.Filter.accept(ConnectorObject)
public boolean accept(EmbeddedObject obj)
Filter
EmbeddedObject
matches this filter.obj
- - The specified EmbeddedObject
.true
if the object matches
(that is, satisfies all selection criteria of) this filter;
otherwise false
.public java.lang.String toString()
toString
in class java.lang.Object