T - the generic type of the object that will be comparedpublic class ChainableComparator<T>
extends org.apache.commons.collections4.comparators.ComparatorChain<T>
ChainableComparator extends the ComparatorChain and provides factory
methods for create ChainableComparator objects. ComparatorChain ,
Serialized Form| Modifier and Type | Method and Description |
|---|---|
static <T> Comparator<T> |
of()
Factory method to create a new chainable
Comparator object. |
static <T> Comparator<T> |
of(Comparator<T> comparator)
Factory method to create a new chainable
Comparator object from the given
Comparator object. |
static <T> Comparator<T> |
of(Comparator<T> comparator,
boolean reverse)
Factory method to create a new chainable
Comparator object from the given
Comparator object and the given reverse flag. |
static <T> Comparator<T> |
of(List<Comparator<T>> list)
Factory method to create a new chainable
Comparator object from the given
List of Comparator objects. |
static <T> Comparator<T> |
of(List<Comparator<T>> list,
BitSet bits)
Factory method to create a new chainable
Comparator object from the given
List of Comparator objects. |
addComparator, addComparator, compare, equals, hashCode, isLocked, setComparator, setComparator, setForwardSort, setReverseSort, sizeclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongpublic static <T> Comparator<T> of()
Comparator object.T - the generic type of the Comparator object that will be comparedComparator object ComparatorChain public static <T> Comparator<T> of(Comparator<T> comparator)
Comparator object from the given
Comparator object.T - the generic type of the Comparator object that will be comparedcomparator - the Comparator object that will be in the chainComparator object ComparatorChain public static <T> Comparator<T> of(Comparator<T> comparator, boolean reverse)
Comparator object from the given
Comparator object and the given reverse flag.T - the generic type of the Comparator object that will be comparedcomparator - the Comparator object that will be in the chainreverse - the reverse flagComparator object ComparatorChain public static <T> Comparator<T> of(List<Comparator<T>> list)
Comparator object from the given
List of Comparator objects.T - the generic type of the Comparator object that will be comparedlist - the list with the Comparator objects.Comparator object ComparatorChain public static <T> Comparator<T> of(List<Comparator<T>> list, BitSet bits)
Comparator object from the given
List of Comparator objects.T - the generic type of the Comparator object that will be comparedlist - the list with the Comparator objects.bits - Sort order for each Comparator. Extra bits are ignored, unless extra Comparators
are added by another method.Comparator object ComparatorChain Copyright © 2015–2017 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.