Package org.arakhne.afc.references
Class AbstractReferencedSet.ReferenceComparator<E,R extends Reference<E>>
- java.lang.Object
-
- org.arakhne.afc.references.AbstractReferencedSet.ReferenceComparator<E,R>
-
- Type Parameters:
E
- is the type of the values.R
- is the type of the references.
- All Implemented Interfaces:
Comparator<R>
- Enclosing class:
- AbstractReferencedSet<E,R extends Reference<E>>
protected static class AbstractReferencedSet.ReferenceComparator<E,R extends Reference<E>> extends Object implements Comparator<R>
Comparator wrapper.- Since:
- 5.9
- Version:
- 17.0 2020-01-04 14:41:38
- Author:
- Stéphane GALLAND
- Maven Group Id:
- org.arakhne.afc.core
- Maven Artifact Id:
- references
-
-
Constructor Summary
Constructors Constructor Description ReferenceComparator(Comparator<? super E> comparator)
Construct a comparator reference.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(R o1, R o2)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Constructor Detail
-
ReferenceComparator
public ReferenceComparator(Comparator<? super E> comparator)
Construct a comparator reference.- Parameters:
comparator
- the comparator.
-
-
Method Detail
-
compare
public int compare(R o1, R o2)
- Specified by:
compare
in interfaceComparator<E>
-
-