Class AddressSet
Order-preserving set of Addresses.
Inheritance
System.Object
AddressSet
Implements
IEquatable<AddressSet>
Namespace: Libplanet.Types.Tx
Assembly: Libplanet.Types.dll
Syntax
public class AddressSet : IImmutableSet<Address>
Constructors
| Improve this Doc View SourceAddressSet(IEnumerable<Address>)
Creates a new AddressSet instance.
Declaration
public AddressSet(IEnumerable<Address> addresses)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<Address> | addresses | Addresses to include in the set. Duplicated
Addresses are ignored, and only the first occurrence is included.
The order of |
Fields
| Improve this Doc View SourceEmpty
An empty AddressSet.
Declaration
public static readonly AddressSet Empty
Field Value
Type | Description |
---|---|
AddressSet |
Properties
| Improve this Doc View SourceCount
Order-preserving set of Addresses.
Declaration
public int Count { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
| Improve this Doc View SourceAdd(Address)
Order-preserving set of Addresses.
Declaration
public IImmutableSet<Address> Add(Address value)
Parameters
Type | Name | Description |
---|---|---|
Address | value |
Returns
Type | Description |
---|---|
IImmutableSet<Address> |
Clear()
Order-preserving set of Addresses.
Declaration
public IImmutableSet<Address> Clear()
Returns
Type | Description |
---|---|
IImmutableSet<Address> |
Contains(Address)
Order-preserving set of Addresses.
Declaration
public bool Contains(Address value)
Parameters
Type | Name | Description |
---|---|---|
Address | value |
Returns
Type | Description |
---|---|
System.Boolean |
GetEnumerator()
Order-preserving set of Addresses.
Declaration
public IEnumerator<Address> GetEnumerator()
Returns
Type | Description |
---|---|
IEnumerator<Address> |
Remove(Address)
Order-preserving set of Addresses.
Declaration
public IImmutableSet<Address> Remove(Address value)
Parameters
Type | Name | Description |
---|---|---|
Address | value |
Returns
Type | Description |
---|---|
IImmutableSet<Address> |
Implements
IEquatable<>