MapOfOptions<K, V extends Object> extension
Properties
-
someValues
→ Map<
K, V> -
Available on Map<
Returns a new map containing only the unwrapped values from Some entries.K, Option< , provided by the MapOfOptions extensionV> >no setter
Methods
-
partition(
) → MapOptionPartition< K, V> -
Available on Map<
Partitions the map into a record containing two maps: one for Some values and one for None values.K, Option< , provided by the MapOfOptions extensionV> > -
sequence(
) → Option< Map< K, V> > -
Available on Map<
Turns aK, Option< , provided by the MapOfOptions extensionV> >Map<K, Option<V>>
into anOption<Map<K, V>>
. If all values are Some, it returns aSome<Map<K, V>>
. If any value is a None, it returns None. -
whereNone(
) → Map< K, None< V> > -
Available on Map<
Creates a new map containing only the entries where the value is a None.K, Option< , provided by the MapOfOptions extensionV> > -
whereSome(
) → Map< K, Some< V> > -
Available on Map<
Creates a new map containing only the entries where the value is a Some. The values in the new map are instances of Some<V>.K, Option< , provided by the MapOfOptions extensionV> >