abstract class AbstractReferenceComparator<T> extends Object implements Comparator<Referrer<T>>
Constructor and Description |
---|
AbstractReferenceComparator() |
Modifier and Type | Method and Description |
---|---|
int |
compare(Referrer<T> o1,
Referrer<T> o2)
This is implemented such that if either Referrer contains a null
referent, the comparison is only made using Referrer's, this may
have a different natural order, than the comparator provided, however
equals will always return 0, this is important to correctly remove
a Referrer once its referent has been collected.
|
boolean |
equals(Object o) |
(package private) abstract Comparator<? super T> |
get() |
int |
hashCode() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public int compare(Referrer<T> o1, Referrer<T> o2)
compare
in interface Comparator<Referrer<T>>
o1
- o2
- public boolean equals(Object o)
abstract Comparator<? super T> get()
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.