public static class AccessOptions.GetOptions extends Object
Modifier and Type | Class and Description |
---|---|
static class |
AccessOptions.GetOptions.GetNulls
How to handle null values during a
PersistentPropertyPath traversal. |
Constructor and Description |
---|
GetOptions(Map<PersistentProperty<?>,Function<Object,Object>> handlers,
AccessOptions.GetOptions.GetNulls nullValues) |
public GetOptions(Map<PersistentProperty<?>,Function<Object,Object>> handlers, AccessOptions.GetOptions.GetNulls nullValues)
public AccessOptions.GetOptions.GetNulls getNullValues()
public AccessOptions.GetOptions withNullValues(AccessOptions.GetOptions.GetNulls nullValues)
public AccessOptions.GetOptions registerHandler(PersistentProperty<?> property, Function<Object,Object> handler)
Function
to post-process values for the given property.property
- must not be null.handler
- must not be null.public AccessOptions.GetOptions registerCollectionHandler(PersistentProperty<?> property, Function<? super Collection<?>,Object> handler)
Function
to handle Collection
values for the given property.property
- must not be null.handler
- must not be null.public AccessOptions.GetOptions registerListHandler(PersistentProperty<?> property, Function<? super List<?>,Object> handler)
property
- must not be null.handler
- must not be null.public AccessOptions.GetOptions registerSetHandler(PersistentProperty<?> property, Function<? super Set<?>,Object> handler)
property
- must not be null.handler
- must not be null.public AccessOptions.GetOptions registerMapHandler(PersistentProperty<?> property, Function<? super Map<?,?>,Object> handler)
property
- must not be null.handler
- must not be null.public <T> AccessOptions.GetOptions registerHandler(PersistentProperty<?> property, Class<T> type, Function<? super T,Object> handler)
Function
to post-process values obtained for the given PersistentProperty
for
the given type.T
- the type of the value to handle.property
- must not be null.type
- must not be null.handler
- must not be null.Copyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.