public class NullToSliceResultAdapter extends AbstractResultAdapter<org.springframework.data.domain.Slice>
This adapter will try to adapt a null value to a slice.
It adapts results if the return type is of type Slice and the original value is null.
This adapter runs at the priority of -200.
| Constructor and Description |
|---|
NullToSliceResultAdapter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accepts(Invocation invocation,
Object originalValue)
Called to determine whether or not this adapter can adapt the original value passed down from a data
store operation to the type required by the repository method being invoked
|
org.springframework.data.domain.Slice |
adapt(Invocation invocation,
Object originalValue)
Called when we need to adapt the result from an invocation to the result required by the repository method
|
compareTo, getPrioritypublic boolean accepts(Invocation invocation, Object originalValue)
ResultAdapterinvocation - the invocationoriginalValue - the original valuepublic org.springframework.data.domain.Slice adapt(Invocation invocation, Object originalValue)
ResultAdapterinvocation - the repository method invocationoriginalValue - the original value returned from a data store operationCopyright © 2014–2016. All rights reserved.