public abstract class AbstractComparator<T> extends Object implements Comparator<T>
| Modifier and Type | Field and Description |
|---|---|
protected static int |
AFTER |
protected static int |
BEFORE |
protected static int |
EQUAL |
| Constructor and Description |
|---|
AbstractComparator() |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(T instance1,
T instance2) |
protected abstract int |
compareInternal(T instance1,
T instance2)
Implement method to perform the comparison.
|
protected int |
compareValues(Date date1,
Date date2) |
protected int |
compareValues(int int1,
int int2) |
protected boolean |
instanceEquals(Object object1,
Object object2) |
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, thenComparingLongprotected static final int BEFORE
protected static final int EQUAL
protected static final int AFTER
public int compare(T instance1, T instance2)
compare in interface Comparator<T>protected abstract int compareInternal(T instance1, T instance2)
protected int compareValues(int int1,
int int2)
Copyright © 2017 SAP SE. All Rights Reserved.