org.camunda.bpm.engine.rest.hal.cache
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>
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INSTANCE
public static final Comparator<HalResourceCacheEntry> INSTANCE
REVERSE
public static final Comparator<HalResourceCacheEntry> REVERSE
HalResourceCacheEntryComparator
public HalResourceCacheEntryComparator()
getInstance
public static Comparator<HalResourceCacheEntry> getInstance()
- Sort cache entries by ascending create time (oldest first)
getReverse
public static Comparator<HalResourceCacheEntry> getReverse()
- Sort cache entries by descending create time (newest first)
compare
public int compare(HalResourceCacheEntry entry1,
HalResourceCacheEntry entry2)
- Specified by:
compare in interface Comparator<HalResourceCacheEntry>
Copyright © 2016 camunda services GmbH. All rights reserved.