MapExt<K, V> extension
Null safety
Extensions to Maps
- on
Methods
-
all(
EntryPredicate< K, V> test) → bool -
Returns
trueif all entries match the given predicatetest. [...] -
any(
EntryPredicate< K, V> test) → bool -
Returns
trueif at least one entry matches the given predicatetest. [...] -
flatMap<
T> (EntryTransform< K, V, Iterable< f) → Iterable<T> >T> -
Return a new lazy
Iterableof all elements yielded from results of transformffunction being invoked on each element of original entries. -
flatMapToList<
T> (List< T> destination, EntryTransform<K, V, Iterable< f) → List<T> >T> -
Appends to the give
destinationwith the elements yielded from results of transformffunction being invoked on each element of original entries. -
flatMapToSet<
T> (Set< T> destination, EntryTransform<K, V, Iterable< f) → Set<T> >T> -
Appends to the give
destinationwith the elements yielded from results of transformffunction being invoked on each element of original entries. -
mapEntries<
T> (EntryTransform< K, V, T> f) → Iterable<T> -
Transforms each entry to object of type
T, by applying the transformerf. -
mapToList<
T> (List< T> destination, EntryTransform<K, V, T> f) → List<T> -
Transforms entries to objects of type
Twith the transformerf, and appends the result to the givendestination. -
mapToSet<
T> (Set< T> destination, EntryTransform<K, V, T> f) → Set<T> -
Transforms entries to objects of type
Twith the transformerf, and appends the result to the givendestination. -
none(
EntryPredicate< K, V> test) → bool -
Returns
trueif no entries match the given predicatetest. [...] -
where(
EntryPredicate< K, V> test) → Iterable<MapEntry< K, V> > -
Returns a new lazy
Iterablewith all entries that satisfy the predicatetest, providing sequential index of the element. -
whereNot(
EntryPredicate< K, V> test) → Iterable<MapEntry< K, V> > -
Returns a new lazy
Iterablewith all entries that do NOT satisfy the predicatetest.