Package | Description |
---|---|
javaslang.collection |
Purely functional collections based on Traversable.
|
Modifier and Type | Method and Description |
---|---|
<K2,V2> HashMap<K2,V2> |
HashMap.bimap(Function<? super K,? extends K2> keyMapper,
Function<? super V,? extends V2> valueMapper) |
HashMap<K,V> |
HashMap.distinct() |
HashMap<K,V> |
HashMap.distinctBy(Comparator<? super Tuple2<K,V>> comparator) |
<U> HashMap<K,V> |
HashMap.distinctBy(Function<? super Tuple2<K,V>,? extends U> keyExtractor) |
HashMap<K,V> |
HashMap.drop(long n) |
HashMap<K,V> |
HashMap.dropRight(long n) |
HashMap<K,V> |
HashMap.dropUntil(Predicate<? super Tuple2<K,V>> predicate) |
HashMap<K,V> |
HashMap.dropWhile(Predicate<? super Tuple2<K,V>> predicate) |
static <K,V> HashMap<K,V> |
HashMap.empty() |
static <K,V> HashMap<K,V> |
HashMap.fill(int n,
Supplier<? extends Tuple2<? extends K,? extends V>> s)
Returns an HashMap containing
n values supplied by a given Supplier s . |
HashMap<K,V> |
HashMap.filter(Predicate<? super Tuple2<K,V>> predicate) |
<K2,V2> HashMap<K2,V2> |
HashMap.flatMap(BiFunction<? super K,? super V,? extends Iterable<Tuple2<K2,V2>>> mapper) |
HashMap<K,V> |
HashMap.init() |
<K2,V2> HashMap<K2,V2> |
HashMap.map(BiFunction<? super K,? super V,Tuple2<K2,V2>> mapper) |
<V2> HashMap<K,V2> |
HashMap.mapValues(Function<? super V,? extends V2> valueMapper) |
HashMap<K,V> |
HashMap.merge(Map<? extends K,? extends V> that) |
<U extends V> |
HashMap.merge(Map<? extends K,U> that,
BiFunction<? super V,? super U,? extends V> collisionResolution) |
static <K,V> HashMap<K,V> |
HashMap.narrow(HashMap<? extends K,? extends V> hashMap)
Narrows a widened
HashMap<? extends K, ? extends V> to HashMap<K, V>
by performing a type safe-cast. |
static <K,V> HashMap<K,V> |
HashMap.of(K key,
V value)
Returns a singleton
HashMap , i.e. |
static <K,V> HashMap<K,V> |
HashMap.of(Object... pairs)
Creates a HashMap of the given list of key-value pairs.
|
static <K,V> HashMap<K,V> |
HashMap.of(Tuple2<? extends K,? extends V> entry)
Returns a singleton
HashMap , i.e. |
static <K,V> HashMap<K,V> |
HashMap.ofAll(Map<? extends K,? extends V> map)
Returns a
HashMap , from a source java.util.Map. |
static <K,V> HashMap<K,V> |
HashMap.ofEntries(Iterable<? extends Tuple2<? extends K,? extends V>> entries)
Creates a HashMap of the given entries.
|
static <K,V> HashMap<K,V> |
HashMap.ofEntries(Map.Entry<? extends K,? extends V>... entries)
Creates a HashMap of the given entries.
|
static <K,V> HashMap<K,V> |
HashMap.ofEntries(Tuple2<? extends K,? extends V>... entries)
Creates a HashMap of the given entries.
|
HashMap<K,V> |
HashMap.peek(Consumer<? super Tuple2<K,V>> action) |
HashMap<K,V> |
HashMap.put(K key,
V value) |
HashMap<K,V> |
HashMap.put(Tuple2<? extends K,? extends V> entry) |
HashMap<K,V> |
HashMap.remove(K key) |
HashMap<K,V> |
HashMap.removeAll(Iterable<? extends K> keys) |
HashMap<K,V> |
HashMap.replace(Tuple2<K,V> currentElement,
Tuple2<K,V> newElement) |
HashMap<K,V> |
HashMap.replaceAll(Tuple2<K,V> currentElement,
Tuple2<K,V> newElement) |
HashMap<K,V> |
HashMap.retainAll(Iterable<? extends Tuple2<K,V>> elements) |
HashMap<K,V> |
HashMap.scan(Tuple2<K,V> zero,
BiFunction<? super Tuple2<K,V>,? super Tuple2<K,V>,? extends Tuple2<K,V>> operation) |
static <K,V> HashMap<K,V> |
HashMap.tabulate(int n,
Function<? super Integer,? extends Tuple2<? extends K,? extends V>> f)
Returns an HashMap containing
n values of a given Function f
over a range of integer values from 0 to n - 1 . |
HashMap<K,V> |
HashMap.tail() |
HashMap<K,V> |
HashMap.take(long n) |
HashMap<K,V> |
HashMap.takeRight(long n) |
HashMap<K,V> |
HashMap.takeUntil(Predicate<? super Tuple2<K,V>> predicate) |
HashMap<K,V> |
HashMap.takeWhile(Predicate<? super Tuple2<K,V>> predicate) |
Modifier and Type | Method and Description |
---|---|
static <K,V> Collector<Tuple2<K,V>,ArrayList<Tuple2<K,V>>,HashMap<K,V>> |
HashMap.collector()
Returns a
Collector which may be used in conjunction with
Stream.collect(java.util.stream.Collector) to obtain a HashMap . |
<C> Map<C,HashMap<K,V>> |
HashMap.groupBy(Function<? super Tuple2<K,V>,? extends C> classifier) |
Iterator<HashMap<K,V>> |
HashMap.grouped(long size) |
Option<HashMap<K,V>> |
HashMap.initOption() |
Tuple2<HashMap<K,V>,HashMap<K,V>> |
HashMap.partition(Predicate<? super Tuple2<K,V>> predicate) |
Tuple2<HashMap<K,V>,HashMap<K,V>> |
HashMap.partition(Predicate<? super Tuple2<K,V>> predicate) |
Iterator<HashMap<K,V>> |
HashMap.sliding(long size) |
Iterator<HashMap<K,V>> |
HashMap.sliding(long size,
long step) |
Tuple2<HashMap<K,V>,HashMap<K,V>> |
HashMap.span(Predicate<? super Tuple2<K,V>> predicate) |
Tuple2<HashMap<K,V>,HashMap<K,V>> |
HashMap.span(Predicate<? super Tuple2<K,V>> predicate) |
Option<HashMap<K,V>> |
HashMap.tailOption() |
Modifier and Type | Method and Description |
---|---|
static <K,V> HashMap<K,V> |
HashMap.narrow(HashMap<? extends K,? extends V> hashMap)
Narrows a widened
HashMap<? extends K, ? extends V> to HashMap<K, V>
by performing a type safe-cast. |
Copyright © 2016. All Rights Reserved.