T
- the type of object that will be comparedpublic abstract class ComparatorBasedArbiter<T> extends Object implements Arbiter
Modifier | Constructor and Description |
---|---|
protected |
ComparatorBasedArbiter(Comparator<T> comparator)
Creates a new
ComparatorBasedArbiter . |
Modifier and Type | Method and Description |
---|---|
protected Comparator<T> |
getComparator()
Returns the
Comparator used by this ComparatorBasedArbiter implementation. |
protected ComparatorBasedArbiter(Comparator<T> comparator)
ComparatorBasedArbiter
.comparator
- the Comparator
to use; must not be
null
NullPointerException
- if comparator
is null
getComparator()
protected Comparator<T> getComparator()
Comparator
used by this ComparatorBasedArbiter
implementation.
This method never returns null
.
Overrides of this method must never return null
.
null
Comparator
ComparatorBasedArbiter(Comparator)
Copyright © 2017–2019, microBean. All rights reserved.