NCPropertyMap

Map-like container that provides support for mutable runtime-only properties or metadata.

See also:
Source:
NCPropertyMap.scala
class Object
trait Matchable
class Any

Value members

Abstract methods

def apply[T](key: String): T

Returns the value to which the specified key is mapped, or null if this map contains no mapping for the key.

Returns the value to which the specified key is mapped, or null if this map contains no mapping for the key.

Value parameters:
key

The key whose associated value is to be returned.

Returns:

The value to which the specified key is mapped, or null if this map contains no mapping for the key.

Source:
NCPropertyMap.scala
def clear(): Unit

Removes all of the mappings from this map. The map will be empty after this call returns.

Removes all of the mappings from this map. The map will be empty after this call returns.

Source:
NCPropertyMap.scala

Returns true if this map contains a mapping for the specified key.

Returns true if this map contains a mapping for the specified key.

Returns:

true if this map contains a mapping for the specified key.

Source:
NCPropertyMap.scala
def get[T](key: String): Option[T]

Returns the value to which the specified key is mapped.

Returns the value to which the specified key is mapped.

Value parameters:
key

The key whose associated value is to be returned.

Returns:

The value to which the specified key is mapped as an optional.

Source:
NCPropertyMap.scala

Returns a set view of the keys contained in this map.

Returns a set view of the keys contained in this map.

Returns:

A set view of the keys contained in this map.

Source:
NCPropertyMap.scala
def put[T](key: String, obj: Any): T

Associates the specified value with the specified key in this map. If the map previously contained a mapping for the key, the old value is replaced by the specified value.

Associates the specified value with the specified key in this map. If the map previously contained a mapping for the key, the old value is replaced by the specified value.

Value parameters:
key

Key with which the specified value is to be associated.

obj

Value to be associated with the specified key.

Returns:

The previous value associated with key, or null if there was no mapping for key.

Source:
NCPropertyMap.scala
def putIfAbsent[T](key: String, obj: T): T

If the specified key is not already associated with a value (or is mapped to null) associates it with the given value and returns null, else returns the current value.

If the specified key is not already associated with a value (or is mapped to null) associates it with the given value and returns null, else returns the current value.

Value parameters:
key

Key with which the specified value is to be associate

obj

Value to be associated with the specified key

Returns:

The previous value associated with the specified key, or null if there was no mapping for the key.

Source:
NCPropertyMap.scala
def remove[T](key: String): T

Removes the mapping for a key from this map if it is present.

Removes the mapping for a key from this map if it is present.

Value parameters:
key

Key whose mapping is to be removed from the map.

Returns:

The previous value associated with key, or null if there was no mapping for key.

Source:
NCPropertyMap.scala
def remove(key: String, obj: Any): Boolean

Removes the entry for the specified key only if it is currently mapped to the specified value.

Removes the entry for the specified key only if it is currently mapped to the specified value.

Value parameters:
key

Key with which the specified value is associated value.

obj

Value expected to be associated with the specified key.

Returns:

true if the value was removed.

Source:
NCPropertyMap.scala