Package org.springframework.ldap.filter
Interface Filter
- All Known Implementing Classes:
AbsoluteFalseFilter,AbsoluteTrueFilter,AbstractFilter,AndFilter,BinaryLogicalFilter,CompareFilter,EqualsFilter,GreaterThanOrEqualsFilter,HardcodedFilter,LessThanOrEqualsFilter,LikeFilter,NotFilter,NotPresentFilter,OrFilter,PresentFilter,WhitespaceWildcardsFilter
public interface Filter
Common interface for LDAP filters.
-
Method Summary
Modifier and TypeMethodDescriptionencode()Encodes the filter to a String.encode(StringBuffer buf) Encodes the filter to a StringBuffer.booleanAll filters must implement equals.inthashCode()All filters must implement hashCode.
-
Method Details
-
encode
String encode()Encodes the filter to a String.- Returns:
- The encoded filter in the standard String format
-
encode
Encodes the filter to a StringBuffer.- Parameters:
buf- The StringBuffer to encode the filter to- Returns:
- The same StringBuffer as was given
-
equals
All filters must implement equals. -
hashCode
int hashCode()All filters must implement hashCode.- Overrides:
hashCodein classObject- Returns:
- the hash code according to the contract in
Object.hashCode()
-