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
interface, the usage is same.
Inheritance
System.Object
AddressStateMap
Assembly: Libplanet.dll
Syntax
public class AddressStateMap : IImmutableDictionary<Address, object>, 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
Type |
Name |
Description |
IImmutableDictionary<Address, System.Object> |
dictionary |
A dictionary of items to
fill the new map with.
|
|
Improve this Doc
View Source
AddressStateMap(SerializationInfo, StreamingContext)
Declaration
protected AddressStateMap(SerializationInfo info, StreamingContext context)
Parameters
Type |
Name |
Description |
SerializationInfo |
info |
|
StreamingContext |
context |
|
Properties
|
Improve this Doc
View Source
Count
Declaration
public int Count { get; }
Property Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
Item[Address]
Declaration
public object this[Address key] { get; }
Parameters
Property Value
Type |
Description |
System.Object |
|
|
Improve this Doc
View Source
Keys
Declaration
public IEnumerable<Address> Keys { get; }
Property Value
Type |
Description |
IEnumerable<Address> |
|
|
Improve this Doc
View Source
Values
Declaration
public IEnumerable<object> Values { get; }
Property Value
Type |
Description |
IEnumerable<System.Object> |
|
Methods
|
Improve this Doc
View Source
Add(Address, Object)
Declaration
public IImmutableDictionary<Address, object> Add(Address key, object value)
Parameters
Type |
Name |
Description |
Address |
key |
|
System.Object |
value |
|
Returns
Type |
Description |
IImmutableDictionary<Address, System.Object> |
|
|
Improve this Doc
View Source
AddRange(IEnumerable<KeyValuePair<Address, Object>>)
Declaration
public IImmutableDictionary<Address, object> AddRange(IEnumerable<KeyValuePair<Address, object>> pairs)
Parameters
Type |
Name |
Description |
IEnumerable<KeyValuePair<Address, System.Object>> |
pairs |
|
Returns
Type |
Description |
IImmutableDictionary<Address, System.Object> |
|
|
Improve this Doc
View Source
Clear()
Declaration
public IImmutableDictionary<Address, object> Clear()
Returns
Type |
Description |
IImmutableDictionary<Address, System.Object> |
|
|
Improve this Doc
View Source
Contains(KeyValuePair<Address, Object>)
Declaration
public bool Contains(KeyValuePair<Address, object> pair)
Parameters
Type |
Name |
Description |
KeyValuePair<Address, System.Object> |
pair |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
ContainsKey(Address)
Declaration
public bool ContainsKey(Address key)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
GetEnumerator()
Declaration
public IEnumerator<KeyValuePair<Address, object>> GetEnumerator()
Returns
Type |
Description |
IEnumerator<KeyValuePair<Address, System.Object>> |
|
|
Improve this Doc
View Source
GetObjectData(SerializationInfo, StreamingContext)
Declaration
public void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type |
Name |
Description |
SerializationInfo |
info |
|
StreamingContext |
context |
|
|
Improve this Doc
View Source
Remove(Address)
Declaration
public IImmutableDictionary<Address, object> Remove(Address key)
Parameters
Returns
Type |
Description |
IImmutableDictionary<Address, System.Object> |
|
|
Improve this Doc
View Source
RemoveRange(IEnumerable<Address>)
Declaration
public IImmutableDictionary<Address, object> RemoveRange(IEnumerable<Address> keys)
Parameters
Type |
Name |
Description |
IEnumerable<Address> |
keys |
|
Returns
Type |
Description |
IImmutableDictionary<Address, System.Object> |
|
|
Improve this Doc
View Source
SetItem(Address, Object)
Declaration
public IImmutableDictionary<Address, object> SetItem(Address key, object value)
Parameters
Type |
Name |
Description |
Address |
key |
|
System.Object |
value |
|
Returns
Type |
Description |
IImmutableDictionary<Address, System.Object> |
|
|
Improve this Doc
View Source
SetItems(IEnumerable<KeyValuePair<Address, Object>>)
Declaration
public IImmutableDictionary<Address, object> SetItems(IEnumerable<KeyValuePair<Address, object>> items)
Parameters
Type |
Name |
Description |
IEnumerable<KeyValuePair<Address, System.Object>> |
items |
|
Returns
Type |
Description |
IImmutableDictionary<Address, System.Object> |
|
|
Improve this Doc
View Source
TryGetKey(Address, out Address)
Declaration
public bool TryGetKey(Address equalKey, out Address actualKey)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
TryGetValue(Address, out Object)
Declaration
public bool TryGetValue(Address key, out object value)
Parameters
Type |
Name |
Description |
Address |
key |
|
System.Object |
value |
|
Returns
Type |
Description |
System.Boolean |
|
Implements
ISerializable