public abstract class AbstractComparator<T>
extends java.lang.Object
implements java.util.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(java.util.Date date1,
java.util.Date date2) |
protected int |
compareValues(int int1,
int int2) |
protected boolean |
instanceEquals(java.lang.Object object1,
java.lang.Object object2) |
protected static final int BEFORE
protected static final int EQUAL
protected static final int AFTER
public int compare(T instance1, T instance2)
compare in interface java.util.Comparator<T>protected abstract int compareInternal(T instance1, T instance2)
protected int compareValues(int int1,
int int2)
protected int compareValues(java.util.Date date1,
java.util.Date date2)
protected boolean instanceEquals(java.lang.Object object1,
java.lang.Object object2)
Copyright © 2018 SAP SE. All Rights Reserved.