public abstract class ComparatorAbstract<T>
extends java.lang.Object
implements java.util.Comparator<T>
Modifier and Type | Field and Description |
---|---|
private boolean |
ascending |
Constructor and Description |
---|
ComparatorAbstract(boolean ascending)
Creates a new instance of ComparatorAbstract.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Integer |
compareByNulls(java.lang.Object first,
Compares objects by nulls.
|
boolean |
isAscending() |
ascending
- first
- second
- null
if both
objects are not null.true
) or descending (false
)