Show / Hide Table of Contents

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
Object
AddressStateMap
Implements
IImmutableDictionary<Address, Object>
IReadOnlyDictionary<Address, Object>
IReadOnlyCollection<KeyValuePair<Address, Object>>
IEnumerable<KeyValuePair<Address, Object>>
IEnumerable
ISerializable
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: Libplanet.Action
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()

Creates an empty map.

Declaration
public AddressStateMap()
| 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, 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
Int32
| Improve this Doc View Source

Item[Address]

Declaration
public object this[Address key] { get; }
Parameters
Type Name Description
Address key
Property Value
Type Description
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<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
Object value
Returns
Type Description
IImmutableDictionary<Address, 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, Object>> pairs
Returns
Type Description
IImmutableDictionary<Address, Object>
| Improve this Doc View Source

Clear()

Declaration
public IImmutableDictionary<Address, object> Clear()
Returns
Type Description
IImmutableDictionary<Address, Object>
| Improve this Doc View Source

Contains(KeyValuePair<Address, Object>)

Declaration
public bool Contains(KeyValuePair<Address, object> pair)
Parameters
Type Name Description
KeyValuePair<Address, Object> pair
Returns
Type Description
Boolean
| Improve this Doc View Source

ContainsKey(Address)

Declaration
public bool ContainsKey(Address key)
Parameters
Type Name Description
Address key
Returns
Type Description
Boolean
| Improve this Doc View Source

GetEnumerator()

Declaration
public IEnumerator<KeyValuePair<Address, object>> GetEnumerator()
Returns
Type Description
IEnumerator<KeyValuePair<Address, 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
Type Name Description
Address key
Returns
Type Description
IImmutableDictionary<Address, 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, 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
Object value
Returns
Type Description
IImmutableDictionary<Address, 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, Object>> items
Returns
Type Description
IImmutableDictionary<Address, Object>
| Improve this Doc View Source

TryGetKey(Address, out Address)

Declaration
public bool TryGetKey(Address equalKey, out Address actualKey)
Parameters
Type Name Description
Address equalKey
Address actualKey
Returns
Type Description
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
Object value
Returns
Type Description
Boolean

Explicit Interface Implementations

| Improve this Doc View Source

IEnumerable.GetEnumerator()

Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Type Description
IEnumerator

Implements

System.Collections.Immutable.IImmutableDictionary<TKey,TValue>
System.Collections.Generic.IReadOnlyDictionary<TKey,TValue>
System.Collections.Generic.IReadOnlyCollection<T>
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable
System.Runtime.Serialization.ISerializable
  • Improve this Doc
  • View Source
Back to top Copyright © 2019 Planetarium
Generated by DocFX