Constructor and Description |
---|
FilterImpl(String filterStr) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
Compares this
Filter to another Filter . |
int |
hashCode()
Returns the hashCode for this
Filter . |
boolean |
match(Dictionary<String,?> dctnr)
Filter using a
Dictionary with case insensitive key lookup. |
boolean |
match(ServiceReference sr)
Filter using a service's properties.
|
boolean |
matchCase(Dictionary<String,?> dctnr)
Filter using a
Dictionary . |
boolean |
matches(Map<String,?> map)
Filter using a
Map . |
String |
toString()
Returns this
Filter 's filter string. |
public FilterImpl(String filterStr) throws InvalidSyntaxException
InvalidSyntaxException
public boolean match(ServiceReference sr)
Filter
This Filter
is executed using the keys and values of the
referenced service's properties. The keys are looked up in a case
insensitive manner.
public boolean match(Dictionary<String,?> dctnr)
Filter
Dictionary
with case insensitive key lookup. This
Filter
is executed using the specified Dictionary
's keys
and values. The keys are looked up in a case insensitive manner.public boolean matchCase(Dictionary<String,?> dctnr)
Filter
Dictionary
. This Filter
is executed using
the specified Dictionary
's keys and values. The keys are looked
up in a normal manner respecting case.public boolean matches(Map<String,?> map)
Filter
Map
. This Filter
is executed using the
specified Map
's keys and values. The keys are looked up in a
normal manner respecting case.public boolean equals(Object o)
Filter
Filter
to another Filter
.
This implementation returns the result of calling
this.toString().equals(obj.toString())
.
public int hashCode()
Filter
Filter
.
This implementation returns the result of calling
this.toString().hashCode()
.
Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.