Class HalResourceCacheEntryComparator
- java.lang.Object
-
- org.camunda.bpm.engine.rest.hal.cache.HalResourceCacheEntryComparator
-
- All Implemented Interfaces:
java.util.Comparator<HalResourceCacheEntry>
public class HalResourceCacheEntryComparator extends java.lang.Object implements java.util.Comparator<HalResourceCacheEntry>
-
-
Field Summary
Fields Modifier and Type Field Description static java.util.Comparator<HalResourceCacheEntry>
INSTANCE
static java.util.Comparator<HalResourceCacheEntry>
REVERSE
-
Constructor Summary
Constructors Constructor Description HalResourceCacheEntryComparator()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(HalResourceCacheEntry entry1, HalResourceCacheEntry entry2)
static java.util.Comparator<HalResourceCacheEntry>
getInstance()
Sort cache entries by ascending create time (oldest first)static java.util.Comparator<HalResourceCacheEntry>
getReverse()
Sort cache entries by descending create time (newest first)
-
-
-
Field Detail
-
INSTANCE
public static final java.util.Comparator<HalResourceCacheEntry> INSTANCE
-
REVERSE
public static final java.util.Comparator<HalResourceCacheEntry> REVERSE
-
-
Method Detail
-
getInstance
public static java.util.Comparator<HalResourceCacheEntry> getInstance()
Sort cache entries by ascending create time (oldest first)
-
getReverse
public static java.util.Comparator<HalResourceCacheEntry> getReverse()
Sort cache entries by descending create time (newest first)
-
compare
public int compare(HalResourceCacheEntry entry1, HalResourceCacheEntry entry2)
- Specified by:
compare
in interfacejava.util.Comparator<HalResourceCacheEntry>
-
-