Interface MapWriter<K, V>
A write-only version of the standard Map
abstract data type. MapWriter
is generally paired with
MapView
, as in the Map
interface.
- Source Code:
- View Source
Inherited Fields:
Instance Method Summary
-- indexed assignment operator --
[]:= (key :
,K value :
)V - Inserts a new value or replaces an existing value.
remove (key :
)K - Removes the entry for
key
, if present. filterInPlace (test :
)(K, V)=>(Bit) - Removes all entries from the map for which
test
returnsfalse
. clear ()- Removes all entries from the list.
Instance Methods
method filterInPlace
(test :(K, V)=>(Bit)
)
Removes all entries from the map for which test
returns false
.
- Parameters:
-
- value of typetest (K, V)=>(Bit)
method clear
()
Removes all entries from the list.