Class HalResourceCacheEntryComparator
java.lang.Object
org.camunda.bpm.engine.rest.hal.cache.HalResourceCacheEntryComparator
- All Implemented Interfaces:
Comparator<HalResourceCacheEntry>
public class HalResourceCacheEntryComparator
extends Object
implements Comparator<HalResourceCacheEntry>
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Comparator<HalResourceCacheEntry>
static final Comparator<HalResourceCacheEntry>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
compare
(HalResourceCacheEntry entry1, HalResourceCacheEntry entry2) static Comparator<HalResourceCacheEntry>
Sort cache entries by ascending create time (oldest first)static Comparator<HalResourceCacheEntry>
Sort cache entries by descending create time (newest first)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Field Details
-
INSTANCE
-
REVERSE
-
-
Constructor Details
-
HalResourceCacheEntryComparator
public HalResourceCacheEntryComparator()
-
-
Method Details
-
getInstance
Sort cache entries by ascending create time (oldest first) -
getReverse
Sort cache entries by descending create time (newest first) -
compare
- Specified by:
compare
in interfaceComparator<HalResourceCacheEntry>
-