shadow:standard

Interface CanIndexStore<K,V>

interface CanIndexStore<K, V>

Interface CanIndexStore<K,V> specifies that a class can store a value in a location associated with a particular key. This interface allows the overloading of the [] operator used to store values. If this operator is applied, the appropriate index(K,V) method will be called, storing the value in a location associated with the key. This interface provides store indexing functionality for arrays, maps, and other symbol tables. It differs from the CanIndexStoreNullable<K,V> interface in that its index(K,V) method cannot store a null value. Interface CanIndex<K,V> provides related index load functionality.

See Also

Method Summary

Modifiers Return Types Method and Description
public () index(K key, V value)

Method called to store a value in a location associated with the key.

Method Detail

index

public index(K key, V value) => ()

Method called to store a value in a location associated with the key.

Parameters

key - key value

value - value to be stored in a location associated with the key