Package org.ldaptive.handler
Class MergeResultHandler
java.lang.Object
org.ldaptive.handler.MergeResultHandler
- All Implemented Interfaces:
Function<SearchResponse,,SearchResponse> SearchResultHandler
Merges the values of the attributes in all entries into a single entry.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(SearchResponse searchResponse) booleaninthashCode()private SearchResponsemerge(SearchResponse searchResponse) Merges the entries in the supplied result into a single entry.toString()
-
Field Details
-
HASH_CODE_SEED
private static final int HASH_CODE_SEEDhash code seed.- See Also:
-
-
Constructor Details
-
MergeResultHandler
public MergeResultHandler()
-
-
Method Details
-
apply
- Specified by:
applyin interfaceFunction<SearchResponse,SearchResponse>
-
merge
Merges the entries in the supplied result into a single entry. This method always returns a search result of size zero or one.- Parameters:
searchResponse- search result containing entries to merge- Returns:
- search result containing a single merged entry
-
equals
-
hashCode
public int hashCode() -
toString
-