Package org.cyclos.server.utils
Class PropertyComparator
- java.lang.Object
-
- org.cyclos.server.utils.PropertyComparator
-
- All Implemented Interfaces:
Comparator<Object>
public class PropertyComparator extends Object implements Comparator<Object>
A comparator which compares bean properties, handling nulls
-
-
Constructor Summary
Constructors Constructor Description PropertyComparator(String propertyName, boolean ascending, boolean nullsFirst)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompare(Object o1, Object o2)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-