Package com.github.tommyettinger.ds.support.sort
package com.github.tommyettinger.ds.support.sort
Code for customized sorting on primitive arrays and collections. With some exceptions (namely,
ObjectComparators.comparingFloat(com.github.tommyettinger.function.ObjToFloatFunction)
and FilteredComparators, which are original to jdkgdxds, as well as
NaturalTextComparator, which is based on the Apache-licensed
java-nat-sort), this is
Apache-licensed code from the FastUtil project with minimal changes.
Like fastutil, jdkgdxds is Apache-licensed, but if you want to refer to FastUtil's license,
it is here.-
ClassDescriptionA type-specific
Comparator; provides methods to compare two primitive types both as objects and as primitive types.A class providing static methods and objects that do useful things with comparators.A type-specific comparator mimicking the natural order (false then true)A type-specific comparator mimicking the opposite of the natural order (the opposite being true then false).A type-specificComparator; provides methods to compare two primitive types both as objects and as primitive types.A class providing static methods and objects that do useful things with comparators.A type-specific comparator mimicking the natural order.A type-specific comparator mimicking the opposite of the natural order.A type-specific comparator that compares items in the natural order, but as if they are unsigned (so, all negative items are greater than any non-negative items).A type-specific comparator that compares items in the opposite of the natural order, but as if they are unsigned.A type-specificComparator; provides methods to compare two primitive types both as objects and as primitive types.A class providing static methods and objects that do useful things with comparators.A type-specific comparator mimicking the natural order.A type-specific comparator mimicking the opposite of the natural order.A type-specificComparator; provides methods to compare two primitive types both as objects and as primitive types.A class providing static methods and objects that do useful things with comparators.A type-specific comparator mimicking the natural order.A type-specific comparator mimicking the opposite of the natural order.ProducesComparators that can sort Strings and Collections while filtering out chars/items that don't match a predicate, and/or altering chars/items when they are compared.A type-specificComparator; provides methods to compare two primitive types both as objects and as primitive types.A class providing static methods and objects that do useful things with comparators.A type-specific comparator mimicking the natural order.A type-specific comparator mimicking the opposite of the natural order.A type-specificComparator; provides methods to compare two primitive types both as objects and as primitive types.A class providing static methods and objects that do useful things with comparators.A type-specific comparator mimicking the natural order.A type-specific comparator mimicking the opposite of the natural order.A type-specific comparator that compares items in the natural order, but as if they are unsigned (so, all negative items are greater than any non-negative items).A type-specific comparator that compares items in the opposite of the natural order, but as if they are unsigned.A type-specificComparator; provides methods to compare two primitive types both as objects and as primitive types.A class providing static methods and objects that do useful things with comparators.A type-specific comparator mimicking the natural order.A type-specific comparator mimicking the opposite of the natural order.A type-specific comparator that compares items in the natural order, but as if they are unsigned (so, all negative items are greater than any non-negative items).A type-specific comparator that compares items in the opposite of the natural order, but as if they are unsigned.A Comparator that can sort Strings, StringBuilders, and other CharSequences by "natural text order," also called Alphanum sort order.ObjectComparators.NaturalImplicitComparator<T extends Comparable<? super T>>A type-specific comparator mimicking the natural order.ObjectComparators.OppositeImplicitComparator<T extends Comparable<? super T>>A type-specific comparator mimicking the opposite of the natural order.A type-specificComparator; provides methods to compare two primitive types both as objects and as primitive types.A class providing static methods and objects that do useful things with comparators.A type-specific comparator mimicking the natural order.A type-specific comparator mimicking the opposite of the natural order.A type-specific comparator that compares items in the natural order, but as if they are unsigned (so, all negative items are greater than any non-negative items).A type-specific comparator that compares items in the opposite of the natural order, but as if they are unsigned.