Uses of Interface
org.tquadrat.foundation.util.Comparators.KeyProvider
Packages that use Comparators.KeyProvider
Package
Description
The utility classes provided for the Foundation
library.
Internal utility classes for the util module of the Foundation library plus
the implementations for the exported components.
-
Uses of Comparators.KeyProvider in org.tquadrat.foundation.util
Methods in org.tquadrat.foundation.util with parameters of type Comparators.KeyProviderModifier and TypeMethodDescriptionstatic final <T,
K extends Comparable<K>>
Comparator<T> Comparators.keyBasedComparator
(Comparators.KeyProvider<? super T, K> keyProvider) 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.static final <T,
K> Comparator <T> Comparators.keyBasedComparator
(Comparators.KeyProvider<T, K> keyProvider, Comparator<K> keyComparator, boolean cacheKeys) 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.static final <T,
K> Comparator <T> Comparators.listBasedComparator
(Comparators.KeyProvider<T, K> keyProvider, Comparator<? super K> comparator, K... keys) A comparator that works on a list of sort keys.static final <T,
K extends Comparable<K>>
Comparator<T> Comparators.listBasedComparator
(Comparators.KeyProvider<T, K> keyProvider, K... keys) A comparator that works on a list of sort keys. -
Uses of Comparators.KeyProvider in org.tquadrat.foundation.util.internal
Classes in org.tquadrat.foundation.util.internal that implement Comparators.KeyProviderModifier and TypeClassDescriptionstatic class
ListBasedComparator.SimpleKeyProvider<T,
K extends T> A simple implementation ofComparators.KeyProvider
that returns the instance itself as the sort order key.Fields in org.tquadrat.foundation.util.internal declared as Comparators.KeyProviderModifier and TypeFieldDescriptionprivate final Comparators.KeyProvider
<T, K> KeyBasedComparator.m_KeyProvider
The method that generates the key for the given element.private final Comparators.KeyProvider
<T, K> ListBasedComparator.m_KeyProvider
The key provider.Constructors in org.tquadrat.foundation.util.internal with parameters of type Comparators.KeyProviderModifierConstructorDescriptionKeyBasedComparator
(Comparators.KeyProvider<T, K> keyProvider, Comparator<K> keyComparator, boolean cacheKeys) Creates a newKeyBasedComparator
instance.ListBasedComparator
(Comparators.KeyProvider<T, K> keyProvider, Comparator<? super K> comparator, K[] keys) Creates a newListBasedComparator
instance.