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 SummaryFields Modifier and Type Field Description static Comparator<HalResourceCacheEntry>INSTANCEstatic Comparator<HalResourceCacheEntry>REVERSE
 - 
Constructor SummaryConstructors Constructor Description HalResourceCacheEntryComparator()
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompare(HalResourceCacheEntry entry1, HalResourceCacheEntry entry2)static Comparator<HalResourceCacheEntry>getInstance()Sort cache entries by ascending create time (oldest first)static Comparator<HalResourceCacheEntry>getReverse()Sort cache entries by descending create time (newest first)- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface java.util.Comparatorequals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
 
- 
 
- 
- 
- 
Field Detail- 
INSTANCEpublic static final Comparator<HalResourceCacheEntry> INSTANCE 
 - 
REVERSEpublic static final Comparator<HalResourceCacheEntry> REVERSE 
 
- 
 - 
Method Detail- 
getInstancepublic static Comparator<HalResourceCacheEntry> getInstance() Sort cache entries by ascending create time (oldest first)
 - 
getReversepublic static Comparator<HalResourceCacheEntry> getReverse() Sort cache entries by descending create time (newest first)
 - 
comparepublic int compare(HalResourceCacheEntry entry1, HalResourceCacheEntry entry2) - Specified by:
- comparein interface- Comparator<HalResourceCacheEntry>
 
 
- 
 
-