Interface LdapClient.MappedSearchSpec<T extends @Nullable Object>
- Type Parameters:
T- the mapped result type
- Enclosing interface:
LdapClient
public static interface LdapClient.MappedSearchSpec<T extends @Nullable Object>
A specification for retrieving mapped search results with various cardinality
options.
- Since:
- 4.1
-
Method Summary
Modifier and TypeMethodDescriptionlist()Retrieve the result as a pre-resolved list of mapped objects, retaining the order from the original database result.optional()Retrieve a single result, if available, as anOptionalhandle.set()Retrieve the result as an order-preserving set of mapped objects.default @NonNull Tsingle()Retrieve a single result as a required object instance.stream()Retrieve the result as a lazily resolved stream of mapped objects, retaining the order from the original database result.
-
Method Details
-
stream
-
list
-
set
-
single
Retrieve a single result as a required object instance.- Returns:
- the single result object (never
null) - See Also:
-
optional
-