Package org.springframework.ldap.filter
Class BinaryLogicalFilter
java.lang.Object
org.springframework.ldap.filter.AbstractFilter
org.springframework.ldap.filter.BinaryLogicalFilter
- All Implemented Interfaces:
Filter
Abstract superclass for binary logical operations, that is "AND"
and "OR" operations.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal BinaryLogicalFilter
Add a query to this logical operation.final BinaryLogicalFilter
appendAll
(Collection<Filter> subQueries) encode
(StringBuffer buff) Encodes the filter to a StringBuffer.boolean
All filters must implement equals.protected abstract String
Implement this in subclass to return the logical operator, for example "&".int
hashCode()
All filters must implement hashCode.Methods inherited from class org.springframework.ldap.filter.AbstractFilter
encode, toString
-
Constructor Details
-
BinaryLogicalFilter
public BinaryLogicalFilter()
-
-
Method Details
-
encode
Description copied from interface:Filter
Encodes the filter to a StringBuffer.- Parameters:
buff
- The StringBuffer to encode the filter to- Returns:
- The same StringBuffer as was given
-
getLogicalOperator
Implement this in subclass to return the logical operator, for example "&".- Returns:
- the logical operator.
-
equals
Description copied from interface:Filter
All filters must implement equals. -
hashCode
public int hashCode()Description copied from interface:Filter
All filters must implement hashCode.- Specified by:
hashCode
in interfaceFilter
- Overrides:
hashCode
in classObject
- Returns:
- the hash code according to the contract in
Object.hashCode()
-
append
Add a query to this logical operation.- Parameters:
query
- the query to add.- Returns:
- This instance.
-
appendAll
-