public class SpelSortAccessor extends Object implements SortAccessor<Comparator<?>>
SortAccessor implementation capable of creating SpelPropertyComparator.| Constructor and Description |
|---|
SpelSortAccessor(SpelExpressionParser parser)
Creates a new
SpelSortAccessor given SpelExpressionParser. |
| Modifier and Type | Method and Description |
|---|---|
Comparator<?> |
resolve(KeyValueQuery<?> query)
Reads
KeyValueQuery.getSort() of given KeyValueQuery and applies required transformation to match
the desired type. |
public SpelSortAccessor(SpelExpressionParser parser)
SpelSortAccessor given SpelExpressionParser.parser - must not be null.public Comparator<?> resolve(KeyValueQuery<?> query)
SortAccessorKeyValueQuery.getSort() of given KeyValueQuery and applies required transformation to match
the desired type.resolve in interface SortAccessor<Comparator<?>>query - must not be null.Sort has not been defined on KeyValueQuery.Copyright © 2011–2019 Pivotal Software, Inc.. All rights reserved.