| 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
InvalidSyntaxExceptionpublic 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)
FilterDictionary 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)
FilterDictionary. 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)
FilterMap. 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)
FilterFilter to another Filter.
This implementation returns the result of calling
this.toString().equals(obj.toString()).
public int hashCode()
FilterFilter.
This implementation returns the result of calling
this.toString().hashCode().
Copyright © 2006–2022 The Apache Software Foundation. All rights reserved.