UNPKG

ts-collection

Version:

This is re-write of the java collection classes in typescript. There is some tweak as typescript templates are not as equivalent as Java.

11 lines (10 loc) 330 B
import { Comparator } from "./comparator"; import { Map } from "./map"; export interface SortedMap<K, V> extends Map<K, V> { comparator(): Comparator<K>; subMap(fromKey: K, toKey: K): SortedMap<K, V>; headMap(toKey: K): SortedMap<K, V>; tailMap(fromKey: K): SortedMap<K, V>; firstKey(): K; lastKey(): K; }