Package org.ldaptive.handler
Class MergeResultHandler
- java.lang.Object
-
- org.ldaptive.handler.MergeResultHandler
-
- All Implemented Interfaces:
Function<SearchResponse,SearchResponse>,SearchResultHandler
public class MergeResultHandler extends Object implements SearchResultHandler
Merges the values of the attributes in all entries into a single entry.
-
-
Field Summary
Fields Modifier and Type Field Description private static intHASH_CODE_SEEDhash code seed.
-
Constructor Summary
Constructors Constructor Description MergeResultHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SearchResponseapply(SearchResponse searchResponse)booleanequals(Object o)inthashCode()private SearchResponsemerge(SearchResponse searchResponse)Merges the entries in the supplied result into a single entry.StringtoString()
-
-
-
Field Detail
-
HASH_CODE_SEED
private static final int HASH_CODE_SEED
hash code seed.- See Also:
- Constant Field Values
-
-
Method Detail
-
apply
public SearchResponse apply(SearchResponse searchResponse)
- Specified by:
applyin interfaceFunction<SearchResponse,SearchResponse>
-
merge
private SearchResponse merge(SearchResponse searchResponse)
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
-
-