public final class SortingUtil extends Object
Modifier and Type | Method and Description |
---|---|
static int |
compare(Comparator<Map.Entry> comparator,
IterationType iterationType,
Map.Entry entry1,
Map.Entry entry2) |
static boolean |
compareAnchor(PagingPredicate pagingPredicate,
QueryableEntry queryEntry,
Map.Entry<Integer,Map.Entry> nearestAnchorEntry) |
static SortedQueryResultSet |
getSortedQueryResultSet(List<Map.Entry> list,
PagingPredicate pagingPredicate,
IterationType iterationType) |
static List<QueryableEntry> |
getSortedSubList(List<QueryableEntry> list,
PagingPredicate pagingPredicate,
Map.Entry<Integer,Map.Entry> nearestAnchorEntry) |
static boolean |
isSuitableForCompare(Comparator<Map.Entry> comparator,
IterationType iterationType,
Map.Entry entry) |
static Comparator<Map.Entry> |
newComparator(Comparator<Map.Entry> comparator,
IterationType iterationType) |
static Comparator<Map.Entry> |
newComparator(PagingPredicate pagingPredicate) |
public static boolean isSuitableForCompare(Comparator<Map.Entry> comparator, IterationType iterationType, Map.Entry entry)
public static int compare(Comparator<Map.Entry> comparator, IterationType iterationType, Map.Entry entry1, Map.Entry entry2)
public static Comparator<Map.Entry> newComparator(Comparator<Map.Entry> comparator, IterationType iterationType)
public static Comparator<Map.Entry> newComparator(PagingPredicate pagingPredicate)
public static List<QueryableEntry> getSortedSubList(List<QueryableEntry> list, PagingPredicate pagingPredicate, Map.Entry<Integer,Map.Entry> nearestAnchorEntry)
public static SortedQueryResultSet getSortedQueryResultSet(List<Map.Entry> list, PagingPredicate pagingPredicate, IterationType iterationType)
public static boolean compareAnchor(PagingPredicate pagingPredicate, QueryableEntry queryEntry, Map.Entry<Integer,Map.Entry> nearestAnchorEntry)
Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.