public class IteratorIterableResultAdapter extends AbstractIterableResultAdapter<Iterator>
This class will adapt results from an iterable object to an iterator.
It will accept adaptations wherein the original value is some sort of iterable and the required return type
is an instance of Iterator. Remember that it does not check for individual object type
compatibility.
This adapter will execute at priority -350.
| Constructor and Description |
|---|
IteratorIterableResultAdapter() |
| 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
|
protected Iterator |
doAdapt(Invocation invocation,
Iterable iterable)
This is called when we want to adapt an iterable object to another type.
|
adaptcompareTo, getPrioritypublic boolean accepts(Invocation invocation, Object originalValue)
ResultAdapterinvocation - the invocationoriginalValue - the original valueprotected Iterator doAdapt(Invocation invocation, Iterable iterable)
AbstractIterableResultAdapterdoAdapt in class AbstractIterableResultAdapter<Iterator>invocation - the invocation which called for this adaptationiterable - the iterable to be adapted to the appropriate result typeCopyright © 2014–2016. All rights reserved.