concurrent

package
v1.0.67 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 15, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dictionary

type Dictionary[TK comparable, T any] struct {
	// contains filtered or unexported fields
}

Dictionary The keys of the map must be of a comparable type such as bool, string, numeric types (int, int8, int16, int32, int64, uint, uint8, uint16, uint32, uint64, float32, float64, complex64, complex128), array (when elements are comparable), or struct (when all fields are comparable).

func NewDictionary added in v1.0.3

func NewDictionary[TK comparable, T any]() *Dictionary[TK, T]

func (*Dictionary[TK, T]) Clear added in v1.0.4

func (d *Dictionary[TK, T]) Clear()

func (*Dictionary[TK, T]) ContainsKey added in v1.0.4

func (d *Dictionary[TK, T]) ContainsKey(key TK) bool

func (*Dictionary[TK, T]) Copy added in v1.0.4

func (d *Dictionary[TK, T]) Copy() *Dictionary[TK, T]

func (*Dictionary[TK, T]) Delete added in v1.0.4

func (d *Dictionary[TK, T]) Delete(key TK)

func (*Dictionary[TK, T]) Get

func (d *Dictionary[TK, T]) Get(key TK) (T, bool)

func (*Dictionary[TK, T]) IsEmpty added in v1.0.4

func (d *Dictionary[TK, T]) IsEmpty() bool

func (*Dictionary[TK, T]) Keys added in v1.0.4

func (d *Dictionary[TK, T]) Keys() []TK

func (*Dictionary[TK, T]) Length added in v1.0.4

func (d *Dictionary[TK, T]) Length() int

func (*Dictionary[TK, T]) Replace added in v1.0.54

func (d *Dictionary[TK, T]) Replace(newData map[TK]T)

func (*Dictionary[TK, T]) Set

func (d *Dictionary[TK, T]) Set(key TK, value T)

func (*Dictionary[TK, T]) Values added in v1.0.4

func (d *Dictionary[TK, T]) Values() []T

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL