Class AddressStateMap
An immutable key–value data structure to represent states of
multiple accounts. Keys are an account Address,
and values are their state.
Since this implements IImmutableDictionary<TKey,TValue>
interface, the usage is same.
Inheritance
AddressStateMap
Assembly: Libplanet.dll
Syntax
[Serializable]
public class AddressStateMap : IImmutableDictionary<Address, object>, IReadOnlyDictionary<Address, object>, IReadOnlyCollection<KeyValuePair<Address, object>>, IEnumerable<KeyValuePair<Address, object>>, IEnumerable, ISerializable
Constructors
|
Improve this Doc
View Source
AddressStateMap()
Declaration
|
Improve this Doc
View Source
AddressStateMap(IImmutableDictionary<Address, Object>)
Creates a new map from the items of the
dictionary
.
Declaration
public AddressStateMap(IImmutableDictionary<Address, object> dictionary)
Parameters
|
Improve this Doc
View Source
AddressStateMap(SerializationInfo, StreamingContext)
Declaration
protected AddressStateMap(SerializationInfo info, StreamingContext context)
Parameters
Properties
|
Improve this Doc
View Source
Count
Declaration
public int Count { get; }
Property Value
|
Improve this Doc
View Source
Item[Address]
Declaration
public object this[Address key] { get; }
Parameters
Property Value
|
Improve this Doc
View Source
Keys
Declaration
public IEnumerable<Address> Keys { get; }
Property Value
|
Improve this Doc
View Source
Values
Declaration
public IEnumerable<object> Values { get; }
Property Value
Methods
|
Improve this Doc
View Source
Add(Address, Object)
Declaration
public IImmutableDictionary<Address, object> Add(Address key, object value)
Parameters
Returns
|
Improve this Doc
View Source
AddRange(IEnumerable<KeyValuePair<Address, Object>>)
Declaration
public IImmutableDictionary<Address, object> AddRange(IEnumerable<KeyValuePair<Address, object>> pairs)
Parameters
Returns
|
Improve this Doc
View Source
Clear()
Declaration
public IImmutableDictionary<Address, object> Clear()
Returns
|
Improve this Doc
View Source
Contains(KeyValuePair<Address, Object>)
Declaration
public bool Contains(KeyValuePair<Address, object> pair)
Parameters
Returns
|
Improve this Doc
View Source
ContainsKey(Address)
Declaration
public bool ContainsKey(Address key)
Parameters
Returns
|
Improve this Doc
View Source
GetEnumerator()
Declaration
public IEnumerator<KeyValuePair<Address, object>> GetEnumerator()
Returns
|
Improve this Doc
View Source
GetObjectData(SerializationInfo, StreamingContext)
Declaration
public void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
|
Improve this Doc
View Source
Remove(Address)
Declaration
public IImmutableDictionary<Address, object> Remove(Address key)
Parameters
Returns
|
Improve this Doc
View Source
RemoveRange(IEnumerable<Address>)
Declaration
public IImmutableDictionary<Address, object> RemoveRange(IEnumerable<Address> keys)
Parameters
Returns
|
Improve this Doc
View Source
SetItem(Address, Object)
Declaration
public IImmutableDictionary<Address, object> SetItem(Address key, object value)
Parameters
Returns
|
Improve this Doc
View Source
SetItems(IEnumerable<KeyValuePair<Address, Object>>)
Declaration
public IImmutableDictionary<Address, object> SetItems(IEnumerable<KeyValuePair<Address, object>> items)
Parameters
Returns
|
Improve this Doc
View Source
TryGetKey(Address, out Address)
Declaration
public bool TryGetKey(Address equalKey, out Address actualKey)
Parameters
Returns
|
Improve this Doc
View Source
TryGetValue(Address, out Object)
Declaration
public bool TryGetValue(Address key, out object value)
Parameters
Returns
Explicit Interface Implementations
|
Improve this Doc
View Source
IEnumerable.GetEnumerator()
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Implements