sortedmap library

Contains a SortedMap and FilteredMap class, which hold a map of objects that can be ordered relative to each other.

Unlike SplayTreeMap the objects can be ordered on both key and value or a combination of both.

The FilteredMap also allows to specify an isValid function on key/value pairs and limit the number of objects allowed in the map.

Classes

Filter<K extends Comparable, V>
Defines a filter that can be used with FilteredMap objects.
FilteredMap<K extends Comparable, V>
A Map of objects that can be ordered relative to each other and where key/value pairs are filtered before adding them to the map.
FilteredMapView<K extends Comparable, V>
A filtered view on a SortedMap or FilteredMap.
KeyValueInterval
Defines an interval.
Ordering
Defines an ordering for a key/value pairs.
Pair
A Pair represents a key/value pair.
SortedMap<K extends Comparable, V>
A Map of objects that can be ordered relative to each other.
UnmodifiableSortedMap<K extends Comparable, V>
An unmodifiable sorted map.