public final class Measurement<V> extends Object implements Comparator<V>
| Constructor and Description |
|---|
Measurement(java.util.function.Function<V,Integer> measure)
Ctor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compare(V one,
V another) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongpublic Measurement(java.util.function.Function<V,Integer> measure)
measure - Function that measures objects.public int compare(V one, V another)
compare in interface Comparator<V>Copyright © 2012–2015 jcabi.com. All rights reserved.