public class HalResourceCacheEntryComparator extends Object implements Comparator<HalResourceCacheEntry>
Modifier and Type | Field and Description |
---|---|
static Comparator<HalResourceCacheEntry> |
INSTANCE |
static Comparator<HalResourceCacheEntry> |
REVERSE |
Constructor and Description |
---|
HalResourceCacheEntryComparator() |
Modifier and Type | Method and Description |
---|---|
int |
compare(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)
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public static final Comparator<HalResourceCacheEntry> INSTANCE
public static final Comparator<HalResourceCacheEntry> REVERSE
public static Comparator<HalResourceCacheEntry> getInstance()
public static Comparator<HalResourceCacheEntry> getReverse()
public int compare(HalResourceCacheEntry entry1, HalResourceCacheEntry entry2)
compare
in interface Comparator<HalResourceCacheEntry>
Copyright © 2020. All rights reserved.