| Modifier and Type | Class and Description |
|---|---|
| private static interface |
| Modifier and Type | Field and Description |
|---|---|
| private final RedBlackTree | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public <K2, V2> TreeMap | bimap(Function<? super K, ? extends K2>
a keyMapper, Function<? super V, ? extends V2> Function that maps the keys of type K to keys of type K2a valueMapper)Function that the values of type V to values of type V2Implements io. Maps this |
| public <K2, V2> TreeMap | bimap(Comparator<? super K2>
A comparator for keys of type K2 keyComparator, Function<? super K, ? extends K2> a keyMapper, Function<? super V, ? extends V2> Function that maps the keys of type K to keys of type K2a valueMapper)Function that the values of type V to values of type V2Implements io. Same as |
| private static <K, K2, V, V2> TreeMap | |
| public static < The key type K extends ComparableThe value type V> Collector | Returns: ATreeMap Collector.Returns a |
| public static < The key type K, The value type V> Collector | Returns: ATreeMap Collector.The comparator used to sort the entries by their key. keyComparator)Returns a |
| public static < The key type K extends ComparableThe value type V, Initial T extends V> Collectorjava. elements type | Returns: ATreeMap Collector.The key mapper keyMapper)Returns a |
| public static < The key type K extends ComparableThe value type V, Initial T> Collectorjava. elements type | Returns: ATreeMap Collector.The key mapper keyMapper, Function<? super T, ? extends V> The value mapper valueMapper)Returns a |
| public static < The key type K, The value type V, Initial T extends V> Collectorjava. elements type | Returns: ATreeMap Collector.The comparator used to sort the entries by their key. keyComparator, Function<? super T, ? extends K> The key mapper keyMapper)Returns a |
| public static < The key type K, The value type V, Initial T> Collectorjava. elements type | Returns: ATreeMap Collector.The comparator used to sort the entries by their key. keyComparator, Function<? super T, ? extends K> The key mapper keyMapper, Function<? super T, ? extends V> The value mapper valueMapper)Returns a |
| public Comparator | comparator()
Implements io. Returns the comparator which defines the order of the elements contained in this collection. |
| public Tuple2 | computeIfAbsent(K
key whose presence in this map is to be tested key, Function<? super K, ? extends V> mapping function mappingFunction)Implements io. If the specified key is not already associated with a value, attempts to compute its value using the given mapping function and enters it into this map. |
| public Tuple2 | computeIfPresent(K
key whose presence in this map is to be tested key, BiFunction<? super K, ? super V, ? extends V> remapping function remappingFunction)Implements io. If the value for the specified key is present, attempts to compute a new mapping given the key and its current mapped value. |
| public boolean | containsKey(K
key whose presence in this map is to be tested key)Implements io. Returns |
| private static <K, V> Collector | |
| private static <K, V, T> Collector | createCollector(TreeMap.
|
| private TreeMap | |
| private static <K, V> TreeMap | |
| private static <K, V> TreeMap | createFromMapEntries(TreeMap.
|
| private static <K, V> TreeMap | |
| private static <K, V> TreeMap | createFromTuple(TreeMap.
|
| private static <K, V> TreeMap | createFromTuples(TreeMap.
|
| private static <K, V> TreeMap | createTreeMap(TreeMap.
|
| private static <K, K2, V, V2> TreeMap | createTreeMap(TreeMap.
|
| public TreeMap | distinct()
Implements io. Returns a new version of this which contains no duplicates. |
| public TreeMap | distinctBy(Comparator<? super Tuple2<K, V>>
A comparator comparator)Implements io. Returns a new version of this which contains no duplicates. |
| public <U> TreeMap | distinctBy(Function<? super Tuple2<K, V>, ? extends U>
A key extractor keyExtractor)Implements io. Returns a new version of this which contains no duplicates. |
| public TreeMap | drop(int
The number of elements to drop. n)Implements io. Drops the first n elements of this or all elements, if this length < n. |
| public TreeMap | dropRight(int
The number of elements to drop. n)Implements io. Drops the last n elements of this or all elements, if this length < n. |
| public TreeMap | dropUntil(Predicate<? super Tuple2<K, V>>
A condition tested subsequently for this elements. predicate)Implements io. Drops elements until the predicate holds for the current element. |
| public TreeMap | dropWhile(Predicate<? super Tuple2<K, V>>
A condition tested subsequently for this elements. predicate)Implements io. Drops elements while the predicate holds for the current element. |
| public static < The key type K extends ComparableThe value type V> TreeMap | |
| public static < The key type K, The value type V> TreeMap | Returns: A new empty TreeMap.The comparator used to sort the entries by their key. keyComparator)Returns the empty TreeMap using the given key comparator. |
| private TreeMap | |
| public boolean | equals(Object
an object, may be null o)Overrides java. Implements io. In Vavr there are four basic classes of collections:
|
| public static < The key type K, The value type V> TreeMap | Returns: A TreeMap of sizen, where each element contains the result supplied by s.The comparator used to sort the entries by their key keyComparator, int The number of elements in the TreeMap n, Supplier<? extends Tuple2<? extends K, ? extends V>> The Supplier computing element values s)Returns a TreeMap containing tuples returned by |
| public static < The key type K extends ComparableThe value type V> TreeMap | Returns: A TreeMap of sizen, where each element contains the result supplied by s.The number of elements in the TreeMap n, Supplier<? extends Tuple2<? extends K, ? extends V>> The Supplier computing element values s)Returns a TreeMap containing tuples returned by |
| public TreeMap | filter(BiPredicate<? super K, ? super V>
the predicate used to test elements predicate)Implements io. Returns a new Map consisting of all elements which satisfy the given predicate. |
| public TreeMap | filter(Predicate<? super Tuple2<K, V>>
A predicate predicate)Implements io. Returns a new traversable consisting of all elements which satisfy the given predicate. |
| public TreeMap | filterKeys(Predicate<? super K>
the predicate used to test keys of elements predicate)Implements io. Returns a new Map consisting of all elements with keys which satisfy the given predicate. |
| public TreeMap | filterValues(Predicate<? super V>
the predicate used to test values of elements predicate)Implements io. Returns a new Map consisting of all elements with values which satisfy the given predicate. |
| public <K2, V2> TreeMap | flatMap(BiFunction<? super K, ? super V, ? extends Iterable<Tuple2<K2, V2>>>
A mapper mapper)Implements io. FlatMaps this |
| public <K2, V2> TreeMap | flatMap(Comparator<? super K2>
A comparator for keys of type U keyComparator, BiFunction<? super K, ? super V, ? extends Iterable<Tuple2<K2, V2>>> A function which maps key/value pairs to Iterables map entries mapper)Implements io. Same as |
| private static <K, V, K2, V2> TreeMap | flatMap(TreeMap<K, V> map, TreeMap.
|
| public Option | get(K
the key whose associated value is to be returned key)Implements io. Returns the |
| public V | getOrElse(K
the key key, V a default value defaultValue)Implements io. Returns the value associated with a key, or a default value if the key is not contained in the map. |
| public <C> Map | groupBy(Function<? super Tuple2<K, V>, ? extends C>
A function which classifies elements into classes classifier)Implements io. Groups this elements by classifying the elements. |
| public Iterator | grouped(int
a positive block size size)Implements io. Groups this |
| public int | hashCode()
Overrides java. Implements io. Returns the hash code of this collection. |
| public Tuple2 | head()
Implements io. Returns the first element of a non-empty Traversable. |
| public TreeMap | init()
Implements io. Dual of tail(), returning all elements except the last. |
| public Option | initOption()
Implements io. Dual of tailOption(), returning all elements except the last as |
| public boolean | Returns: falseImplements io. An |
| public boolean | isEmpty()
Overrides default io. Checks if this Traversable is empty. |
| public boolean | |
| public Iterator | |
| public SortedSet | |
| public Tuple2 | last()
Overrides default io. Dual of head(), returning the last element. |
| public <K2, V2> TreeMap | map(BiFunction<? super K, ? super V, Tuple2<K2, V2>>
a mapper)Function that maps entries of type (K, V) to entries of type (K2, V2)Implements io. Maps the entries of this |
| public <K2, V2> TreeMap | map(Comparator<? super K2>
A comparator for keys of type U keyComparator, BiFunction<? super K, ? super V, Tuple2<K2, V2>> a mapper)Function that maps entries of type (K, V) to entries of type (K2, V2)Implements io. Same as |
| private static <K, K2, V, V2> TreeMap | map(TreeMap<K, V> map, TreeMap.
|
| public <K2> TreeMap | mapKeys(Function<? super K, ? extends K2>
a keyMapper)Function that maps keys of type V to keys of type V2Implements io. Maps the keys of this |
| public <K2> TreeMap | mapKeys(Function<? super K, ? extends K2>
a keyMapper, BiFunction<? super V, ? super V, ? extends V> Function that maps keys of type V to keys of type V2a valueMerge)BiFunction that merges valuesImplements io. Maps the keys of this |
| public <W> TreeMap | mapValues(Function<? super V, ? extends W>
a valueMapper)Function that maps values of type V to values of type V2Implements io. Maps the values of this |
| public TreeMap | merge(Map<? extends K, ? extends V>
the other map that)Implements io. Creates a new map which by merging the entries of |
| public <U extends V> TreeMap | merge(Map<? extends K, U>
the other map that, BiFunction<? super V, ? super U, ? extends V> the collision resolution function collisionResolution)Implements io. Creates a new map which by merging the entries of |
| public static < Key type K, Value type V> TreeMap | |
| public static < The key type K extends ComparableThe value type V> TreeMap | |
| public static < The key type K, The value type V> TreeMap | Returns: A new TreeMap containing the given entry.The comparator used to sort the entries by their key. keyComparator, Tuple2<? extends K, ? extends V> A map entry. entry)Returns a singleton |
| public static < The key type K extends ComparableThe value type V> TreeMap | Returns: A new Map containing the given entryA singleton map key. key, V A singleton map value. value)Returns a singleton |
| public static < The key type K extends ComparableThe value type V> TreeMap | Returns: A new Map containing the given entriesa key for the map k1, V the value for k1 v1, K a key for the map k2, V the value for k2 v2)Creates a |
| public static < The key type K extends ComparableThe value type V> TreeMap | Returns: A new Map containing the given entriesa key for the map k1, V the value for k1 v1, K a key for the map k2, V the value for k2 v2, K a key for the map k3, V the value for k3 v3)Creates a |
| public static < The key type K extends ComparableThe value type V> TreeMap | Returns: A new Map containing the given entriesa key for the map k1, V the value for k1 v1, K a key for the map k2, V the value for k2 v2, K a key for the map k3, V the value for k3 v3, K a key for the map k4, V the value for k4 v4)Creates a |
| public static < The key type K extends ComparableThe value type V> TreeMap | Returns: A new Map containing the given entriesa key for the map k1, V the value for k1 v1, K a key for the map k2, V the value for k2 v2, K a key for the map k3, V the value for k3 v3, K a key for the map k4, V the value for k4 v4, K a key for the map k5, V the value for k5 v5)Creates a |
| public static < The key type K extends ComparableThe value type V> TreeMap | Returns: A new Map containing the given entriesa key for the map k1, V the value for k1 v1, K a key for the map k2, V the value for k2 v2, K a key for the map k3, V the value for k3 v3, K a key for the map k4, V the value for k4 v4, K a key for the map k5, V the value for k5 v5, K a key for the map k6, V the value for k6 v6)Creates a |
| public static < The key type K extends ComparableThe value type V> TreeMap | Returns: A new Map containing the given entriesa key for the map k1, V the value for k1 v1, K a key for the map k2, V the value for k2 v2, K a key for the map k3, V the value for k3 v3, K a key for the map k4, V the value for k4 v4, K a key for the map k5, V the value for k5 v5, K a key for the map k6, V the value for k6 v6, K a key for the map k7, V the value for k7 v7)Creates a |
| public static < The key type K extends ComparableThe value type V> TreeMap | Returns: A new Map containing the given entriesa key for the map k1, V the value for k1 v1, K a key for the map k2, V the value for k2 v2, K a key for the map k3, V the value for k3 v3, K a key for the map k4, V the value for k4 v4, K a key for the map k5, V the value for k5 v5, K a key for the map k6, V the value for k6 v6, K a key for the map k7, V the value for k7 v7, K a key for the map k8, V the value for k8 v8)Creates a |
| public static < The key type K extends ComparableThe value type V> TreeMap | Returns: A new Map containing the given entriesa key for the map k1, V the value for k1 v1, K a key for the map k2, V the value for k2 v2, K a key for the map k3, V the value for k3 v3, K a key for the map k4, V the value for k4 v4, K a key for the map k5, V the value for k5 v5, K a key for the map k6, V the value for k6 v6, K a key for the map k7, V the value for k7 v7, K a key for the map k8, V the value for k8 v8, K a key for the map k9, V the value for k9 v9)Creates a |
| public static < The key type K extends ComparableThe value type V> TreeMap | Returns: A new Map containing the given entriesa key for the map k1, V the value for k1 v1, K a key for the map k2, V the value for k2 v2, K a key for the map k3, V the value for k3 v3, K a key for the map k4, V the value for k4 v4, K a key for the map k5, V the value for k5 v5, K a key for the map k6, V the value for k6 v6, K a key for the map k7, V the value for k7 v7, K a key for the map k8, V the value for k8 v8, K a key for the map k9, V the value for k9 v9, K a key for the map k10, V the value for k10 v10)Creates a |
| public static < The key type K, The value type V> TreeMap | Returns: A new Map containing the given entryThe comparator used to sort the entries by their key. keyComparator, K A singleton map key. key, V A singleton map value. value)Returns a singleton |
| public static < The key type K, The value type V> TreeMap | Returns: A new Map containing the given entriesThe comparator used to sort the entries by their key. keyComparator, K a key for the map k1, V the value for k1 v1, K a key for the map k2, V the value for k2 v2)Creates a |
| public static < The key type K, The value type V> TreeMap | Returns: A new Map containing the given entriesThe comparator used to sort the entries by their key. keyComparator, K a key for the map k1, V the value for k1 v1, K a key for the map k2, V the value for k2 v2, K a key for the map k3, V the value for k3 v3)Creates a |
| public static < The key type K, The value type V> TreeMap | Returns: A new Map containing the given entriesThe comparator used to sort the entries by their key. keyComparator, K a key for the map k1, V the value for k1 v1, K a key for the map k2, V the value for k2 v2, K a key for the map k3, V the value for k3 v3, K a key for the map k4, V the value for k4 v4)Creates a |
| public static < The key type K, The value type V> TreeMap | Returns: A new Map containing the given entriesThe comparator used to sort the entries by their key. keyComparator, K a key for the map k1, V the value for k1 v1, K a key for the map k2, V the value for k2 v2, K a key for the map k3, V the value for k3 v3, K a key for the map k4, V the value for k4 v4, K a key for the map k5, V the value for k5 v5)Creates a |
| public static < The key type K, The value type V> TreeMap | Returns: A new Map containing the given entriesThe comparator used to sort the entries by their key. keyComparator, K a key for the map k1, V the value for k1 v1, K a key for the map k2, V the value for k2 v2, K a key for the map k3, V the value for k3 v3, K a key for the map k4, V the value for k4 v4, K a key for the map k5, V the value for k5 v5, K a key for the map k6, V the value for k6 v6)Creates a |
| public static < The key type K, The value type V> TreeMap | Returns: A new Map containing the given entriesThe comparator used to sort the entries by their key. keyComparator, K a key for the map k1, V the value for k1 v1, K a key for the map k2, V the value for k2 v2, K a key for the map k3, V the value for k3 v3, K a key for the map k4, V the value for k4 v4, K a key for the map k5, V the value for k5 v5, K a key for the map k6, V the value for k6 v6, K a key for the map k7, V the value for k7 v7)Creates a |
| public static < The key type K, The value type V> TreeMap | Returns: A new Map containing the given entriesThe comparator used to sort the entries by their key. keyComparator, K a key for the map k1, V the value for k1 v1, K a key for the map k2, V the value for k2 v2, K a key for the map k3, V the value for k3 v3, K a key for the map k4, V the value for k4 v4, K a key for the map k5, V the value for k5 v5, K a key for the map k6, V the value for k6 v6, K a key for the map k7, V the value for k7 v7, K a key for the map k8, V the value for k8 v8)Creates a |
| public static < The key type K, The value type V> TreeMap | Returns: A new Map containing the given entriesThe comparator used to sort the entries by their key. keyComparator, K a key for the map k1, V the value for k1 v1, K a key for the map k2, V the value for k2 v2, K a key for the map k3, V the value for k3 v3, K a key for the map k4, V the value for k4 v4, K a key for the map k5, V the value for k5 v5, K a key for the map k6, V the value for k6 v6, K a key for the map k7, V the value for k7 v7, K a key for the map k8, V the value for k8 v8, K a key for the map k9, V the value for k9 v9)Creates a |
| public static < The key type K, The value type V> TreeMap | Returns: A new Map containing the given entriesThe comparator used to sort the entries by their key. keyComparator, K a key for the map k1, V the value for k1 v1, K a key for the map k2, V the value for k2 v2, K a key for the map k3, V the value for k3 v3, K a key for the map k4, V the value for k4 v4, K a key for the map k5, V the value for k5 v5, K a key for the map k6, V the value for k6 v6, K a key for the map k7, V the value for k7 v7, K a key for the map k8, V the value for k8 v8, K a key for the map k9, V the value for k9 v9, K a key for the map k10, V the value for k10 v10)Creates a |
| public static < The key type K extends ComparableThe value type V> TreeMap | |
| public static < The stream element type T, The key type K extends ComparableThe value type V> TreeMap | |
| public static < The stream element type T, The key type K, The value type V> TreeMap | Returns: A new MapThe comparator used to sort the entries by their key. keyComparator, Stream<? extends T> the source stream stream, Function<? super T, ? extends K> the key mapper keyMapper, Function<? super T, ? extends V> the value mapper valueMapper)Returns a |
| public static < The stream element type T, The key type K extends ComparableThe value type V> TreeMap | |
| public static < The stream element type T, The key type K, The value type V> TreeMap | Returns: A new MapThe comparator used to sort the entries by their key. keyComparator, Stream<? extends T> the source stream stream, Function<? super T, Tuple2<? extends K, ? extends V>> the entry mapper entryMapper)Returns a |
| public static < The key type K, The value type V> TreeMap | Returns: A new Map containing the given mapThe comparator used to sort the entries by their key. keyComparator, Map<? extends K, ? extends V> A map map)Returns a |
| public static < The key type K extends ComparableThe value type V> TreeMap | |
| public static < The key type K, The value type V> TreeMap | Returns: A new TreeMap containing the given entries.The comparator used to sort the entries by their key. keyComparator, Tuple2<? extends K, ? extends V>... Map entries entries)Creates a |
| public static < The key type K extends ComparableThe value type V> TreeMap | |
| public static < The key type K, The value type V> TreeMap | Returns: A new TreeMap containing the given entries.The comparator used to sort the entries by their key. keyComparator, Map.Map entries entriesCreates a |
| public static < The key type K extends ComparableThe value type V> TreeMap | |
| public static < The key type K, The value type V> TreeMap | Returns: A new TreeMap containing the given entries.The comparator used to sort the entries by their key. keyComparator, Iterable<? extends Tuple2<? extends K, ? extends V>> Map entries entries)Creates a |
| public TreeMap | Returns: thisTreeMap if it is nonempty,
otherwise TreeMap created from iterable, using existing comparator.An alternative other)TraversableImplements io. Returns this |
| public TreeMap | Returns: thisTreeMap if it is nonempty,
otherwise TreeMap created from result of evaluating supplier, using existing comparator.An alternative supplier)TraversableImplements io. Returns this |
| public Tuple2 | partition(Predicate<? super Tuple2<K, V>>
A predicate which classifies an element if it is in the first or the second traversable. predicate)Implements io. Creates a partition of this |
| public TreeMap | peek(Consumer<? super Tuple2<K, V>>
The action that will be performed on the element(s). action)Implements io. Performs the given |
| public <U extends V> TreeMap | put(K
key with which the specified value is to be associated key, U value to be associated with the specified key value, BiFunction<? super V, ? super U, ? extends V> function taking the old and new values and merging them. merge)Implements io. Associates the specified value with the specified key in this map. |
| public TreeMap | put(K
key with which the specified value is to be associated key, V value to be associated with the specified key value)Implements io. Associates the specified value with the specified key in this map. |
| public TreeMap | put(Tuple2<? extends K, ? extends V>
A Tuple2 containing the key and value entry)Implements io. Convenience method for |
| public <U extends V> TreeMap | put(Tuple2<? extends K, U>
A Tuple2 containing the key and value entry, BiFunction<? super V, ? super U, ? extends V> function taking the old and new values and merging them. merge)Implements io. Convenience method for |
| public TreeMap | reject(BiPredicate<? super K, ? super V>
the predicate used to test elements predicate)Implements io. Returns a new Map consisting of all elements which do not satisfy the given predicate. |
| public TreeMap | reject(Predicate<? super Tuple2<K, V>>
A predicate predicate)Implements io. Returns a new traversable consisting of all elements which do not satisfy the given predicate. |
| public TreeMap | rejectKeys(Predicate<? super K>
the predicate used to test keys of elements predicate)Implements io. Returns a new Map consisting of all elements with keys which do not satisfy the given predicate. |
| public TreeMap | rejectValues(Predicate<? super V>
the predicate used to test values of elements predicate)Implements io. Returns a new Map consisting of all elements with values which do not satisfy the given predicate. |
| public TreeMap | remove(K
key whose mapping is to be removed from the map key)Implements io. Removes the mapping for a key from this map if it is present. |
| public TreeMap | removeAll(BiPredicate<? super K, ? super V>
the predicate used to test elements predicate)Implements io.
Deprecated
Returns a new Map consisting of all elements which do not satisfy the given predicate. |
| public TreeMap | removeAll(Iterable<? extends K>
keys are to be removed from the map keys)Implements io. Removes the mapping for a key from this map if it is present. |
| public TreeMap | removeKeys(Predicate<? super K>
the predicate used to test keys of elements predicate)Implements io.
Deprecated
Returns a new Map consisting of all elements with keys which do not satisfy the given predicate. |
| public TreeMap | removeValues(Predicate<? super V>
the predicate used to test values of elements predicate)Implements io.
Deprecated
Returns a new Map consisting of all elements with values which do not satisfy the given predicate. |
| public TreeMap | replace(Tuple2<K, V>
An element to be substituted. currentElement, Tuple2<K, V> A replacement for currentElement. newElement)Implements io. Replaces the first occurrence (if exists) of the given currentElement with newElement. |
| public TreeMap | replace(K
the key of the element to be substituted. key, V the expected current value that the key is currently mapped to oldValue, V the new value to be associated with the key newValue)Implements io. Replaces the entry for the specified key only if currently mapped to the specified value. |
| public TreeMap | replaceAll(Tuple2<K, V>
An element to be substituted. currentElement, Tuple2<K, V> A replacement for currentElement. newElement)Implements io. Replaces all occurrences of the given currentElement with newElement. |
| public TreeMap | replaceAll(BiFunction<? super K, ? super V, ? extends V>
function transforming key and current value to a new value function)Implements io. Replaces each entry's value with the result of invoking the given function on that entry until all entries have been processed or the function throws an exception. |
| public TreeMap | replaceValue(K
the key of the element to be substituted. key, V the new value to be associated with the key value)Implements io. Replaces the entry for the specified key only if it is currently mapped to some value. |
| public TreeMap | retainAll(Iterable<? extends Tuple2<K, V>>
Elements to be kept. elements)Implements io. Keeps all occurrences of the given elements from this. |
| public TreeMap | scan(Tuple2<K, V>
neutral element for the operator op zero, BiFunction<? super Tuple2<K, V>, ? super Tuple2<K, V>, ? extends Tuple2<K, V>> the associative operator for the scan operation)Implements io. Computes a prefix scan of the elements of the collection. |
| public int | |
| public Iterator | slideBy(Function<? super Tuple2<K, V>, ?>
A function which classifies elements into classes classifier)Implements io. Slides a non-overlapping window of a variable size over this |
| public Iterator | sliding(int
a positive window size size)Implements io. Slides a window of a specific |
| public Iterator | sliding(int
a positive window size size, int a positive step size step)Implements io. Slides a window of a specific |
| public Tuple2 | span(Predicate<? super Tuple2<K, V>>
A predicate. predicate)Implements io. Returns a tuple where the first element is the longest prefix of elements that satisfy the given
|
| public String | stringPrefix()
Implements io. Returns the name of this Value type, which is used by toString(). |
| public static < The key type K, The value type V> TreeMap | Returns: A TreeMap consisting of elementsf(0),f(1), ..., f(n - 1)The comparator used to sort the entries by their key keyComparator, int The number of elements in the TreeMap n, Function<? super Integer, ? extends Tuple2<? extends K, ? extends V>> The Function computing element values f)Returns a TreeMap containing |
| public static < The key type K extends ComparableThe value type V> TreeMap | Returns: A TreeMap consisting of elementsf(0),f(1), ..., f(n - 1)The number of elements in the TreeMap n, Function<? super Integer, ? extends Tuple2<? extends K, ? extends V>> The Function computing element values f)Returns a TreeMap containing |
| public TreeMap | tail()
Implements io. Drops the first element of a non-empty Traversable. |
| public Option | tailOption()
Implements io. Drops the first element of a non-empty Traversable and returns an |
| public TreeMap | take(int
The number of elements to take. n)Implements io. Takes the first n elements of this or all elements, if this length < n. |
| public TreeMap | takeRight(int
The number of elements to take. n)Implements io. Takes the last n elements of this or all elements, if this length < n. |
| public TreeMap | takeUntil(Predicate<? super Tuple2<K, V>>
A condition tested subsequently for this elements. predicate)Implements io. Takes elements until the predicate holds for the current element. |
| public TreeMap | takeWhile(Predicate<? super Tuple2<K, V>>
A condition tested subsequently for the contained elements. predicate)Implements io. Takes elements while the predicate holds for the current element. |
| public TreeMap | toJavaMap()
Implements io. Converts this Vavr |
| public String | toString()
Overrides java. Implements io. Clarifies that values have a proper toString() method implemented. |
| public Seq | values()
Implements io. Returns a new |