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 BinaryLogicalFilterAdd a query to this logical operation.final BinaryLogicalFilterappendAll(Collection<Filter> subQueries) encode(StringBuffer buff) Encodes the filter to a StringBuffer.booleanAll filters must implement equals.protected abstract StringImplement this in subclass to return the logical operator, for example "&".inthashCode()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:FilterEncodes 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:FilterAll filters must implement equals. -
hashCode
public int hashCode()Description copied from interface:FilterAll filters must implement hashCode.- Specified by:
hashCodein interfaceFilter- Overrides:
hashCodein 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
-