public class JAMonComparator extends Object implements Comparator, Serializable
Constructor and Description |
---|
JAMonComparator() |
JAMonComparator(boolean naturalOrder) |
JAMonComparator(boolean naturalOrder,
Comparator childComparator) |
Modifier and Type | Method and Description |
---|---|
int |
compare(Object newObj,
Object existingObj)
Returns the following:
if newObj object is less than existingObj - returns a negative integer,
if the objects are equal - returns zero
if newObj object is greater than existingObj - return positive integer
|
protected int |
compareThis(Object newObj,
Object existingObj) |
boolean |
isNaturalOrder() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public JAMonComparator()
public JAMonComparator(boolean naturalOrder)
public JAMonComparator(boolean naturalOrder, Comparator childComparator)
public int compare(Object newObj, Object existingObj)
compare
in interface Comparator
public boolean isNaturalOrder()
Copyright © 2015. All rights reserved.