Package com.randomnoun.common
Class Struct.StructuredListComparatorIgnoreCase
java.lang.Object
com.randomnoun.common.Struct.StructuredListComparatorIgnoreCase
- All Implemented Interfaces:
Comparator
- Enclosing class:
Struct
A Comparator which performs comparisons between two rows in a structured list (used
in sorting), keyed on a case-insensitive String value. This comparator is similar to an
'ORDER BY' on a single field returned by the Spring JdbcTemplate method.
-
Constructor Summary
ConstructorsConstructorDescriptionStructuredListComparatorIgnoreCase(String fieldName) Create a new StructuredListComparatorIgnoreCase object, which will sort on the supplied field. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
StructuredListComparatorIgnoreCase
Create a new StructuredListComparatorIgnoreCase object, which will sort on the supplied field.- Parameters:
fieldName- The name of the field to sort on
-
-
Method Details
-
compare
Compare two structured list elements- Specified by:
comparein interfaceComparator- Throws:
IllegalArgumentException- See Also:
-