Index

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form

K

keyBasedComparator(Comparators.KeyProvider<? super T, K>) - Static method in class org.tquadrat.foundation.util.Comparators
Returns a comparator that generates a sort key from the elements before sorting them.

The implementation of this comparator generates the sort keys for each and every comparison.
keyBasedComparator(Comparators.KeyProvider<T, K>, Comparator<K>, boolean) - Static method in class org.tquadrat.foundation.util.Comparators
A comparator that generates a sort key from the elements before sorting them.

As it is not very efficient to generate the sort keys for each and every comparison, it is possible to cache them.
KeyBasedComparator<T,K> - Class in org.tquadrat.foundation.util.internal
Sometimes a special sort key is used to order elements, and instead of hiding the generation of that key inside the method compare() of an implementation of Comparator, this implementation expects an instance of Comparators.KeyProvider as an argument to its constructor.
KeyBasedComparator(Comparators.KeyProvider<T, K>, Comparator<K>, boolean) - Constructor for class org.tquadrat.foundation.util.internal.KeyBasedComparator
Creates a new KeyBasedComparator instance.
keySet() - Method in class org.tquadrat.foundation.util.internal.LazyMapImpl
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form