com.hazelcast.util
Class SortingUtil

java.lang.Object
  extended by com.hazelcast.util.SortingUtil

public final class SortingUtil
extends Object

Utility class for generating Comparators to be used in sort methods specific to hazelcast classes.


Method Summary
static int compare(Comparator<Map.Entry> comparator, IterationType iterationType, Map.Entry entry1, Map.Entry entry2)
           
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isSuitableForCompare

public static boolean isSuitableForCompare(Comparator<Map.Entry> comparator,
                                           IterationType iterationType,
                                           Map.Entry entry)

compare

public static int compare(Comparator<Map.Entry> comparator,
                          IterationType iterationType,
                          Map.Entry entry1,
                          Map.Entry entry2)

newComparator

public static Comparator<Map.Entry> newComparator(Comparator<Map.Entry> comparator,
                                                  IterationType iterationType)

newComparator

public static Comparator<Map.Entry> newComparator(PagingPredicate pagingPredicate)


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.