Table of Contents

Class ValueSet

Namespace
Badeend.ValueCollections
Assembly
Badeend.ValueCollections.dll

Initialization methods for ValueSet<T>.

public static class ValueSet
Inheritance
ValueSet
Inherited Members

Methods

CreateBuilderWithCapacity<T>(int)

Create a new empty ValueSet<T>.Builder with the specified initial minimumCapacity. This builder can then be used to efficiently construct an immutable ValueSet<T>.

[Pure]
public static ValueSet<T>.Builder CreateBuilderWithCapacity<T>(int minimumCapacity)

Parameters

minimumCapacity int

Returns

ValueSet<T>.Builder

Type Parameters

T

Exceptions

ArgumentOutOfRangeException

minimumCapacity is less than 0.

CreateBuilder<T>()

Create a new empty ValueSet<T>.Builder. This builder can then be used to efficiently construct an immutable ValueSet<T>.

[Pure]
public static ValueSet<T>.Builder CreateBuilder<T>()

Returns

ValueSet<T>.Builder

Type Parameters

T

CreateBuilder<T>(scoped ReadOnlySpan<T>)

Create a new ValueSet<T>.Builder with the provided items as its initial content.

[Pure]
public static ValueSet<T>.Builder CreateBuilder<T>(scoped ReadOnlySpan<T> items)

Parameters

items ReadOnlySpan<T>

Returns

ValueSet<T>.Builder

Type Parameters

T

Create<T>(scoped ReadOnlySpan<T>)

Copy the items into a new ValueSet<T>.

[Pure]
public static ValueSet<T> Create<T>(scoped ReadOnlySpan<T> items)

Parameters

items ReadOnlySpan<T>

Returns

ValueSet<T>

Type Parameters

T