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 int
HASH_CODE_SEED
hash code seed.
-
Constructor Summary
Constructors Constructor Description MergeResultHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SearchResponse
apply(SearchResponse searchResponse)
boolean
equals(Object o)
int
hashCode()
private SearchResponse
merge(SearchResponse searchResponse)
Merges the entries in the supplied result into a single entry.String
toString()
-
-
-
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:
apply
in 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
-
-