mapping

package
v0.0.0-...-d8d3109 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HashMap

type HashMap[K comparable, V any] struct {
	// contains filtered or unexported fields
}

func NewHashMap

func NewHashMap[K comparable, V any]() *HashMap[K, V]

func (*HashMap[K, V]) ContainsKey

func (m *HashMap[K, V]) ContainsKey(key K) bool

func (*HashMap[K, V]) Delete

func (m *HashMap[K, V]) Delete(key K)

func (*HashMap[K, V]) ForEach

func (m *HashMap[K, V]) ForEach(f func(key K, value V) bool)

func (*HashMap[K, V]) Get

func (m *HashMap[K, V]) Get(key K) (V, bool)

func (*HashMap[K, V]) IsEmpty

func (m *HashMap[K, V]) IsEmpty() bool

func (*HashMap[K, V]) Keys

func (m *HashMap[K, V]) Keys() []K

func (*HashMap[K, V]) Len

func (m *HashMap[K, V]) Len() int

func (*HashMap[K, V]) MustGet

func (m *HashMap[K, V]) MustGet(key K) V

func (*HashMap[K, V]) Set

func (m *HashMap[K, V]) Set(key K, value V)

func (*HashMap[K, V]) Values

func (m *HashMap[K, V]) Values() []V

type LinkedHashMap

type LinkedHashMap[K comparable, V any] struct {
	K []K
	M map[K]V
}

func NewLinkedHashMap

func NewLinkedHashMap[K comparable, V any]() *LinkedHashMap[K, V]

func (*LinkedHashMap[K, V]) Clear

func (l *LinkedHashMap[K, V]) Clear()

func (*LinkedHashMap[K, V]) ContainsKey

func (l *LinkedHashMap[K, V]) ContainsKey(key K) bool

func (*LinkedHashMap[K, V]) ForEach

func (l *LinkedHashMap[K, V]) ForEach(f func(key K, value V) bool)

func (*LinkedHashMap[K, V]) Get

func (l *LinkedHashMap[K, V]) Get(key K) (V, bool)

func (*LinkedHashMap[K, V]) IsEmpty

func (l *LinkedHashMap[K, V]) IsEmpty() bool

func (*LinkedHashMap[K, V]) Keys

func (l *LinkedHashMap[K, V]) Keys() []K

func (*LinkedHashMap[K, V]) Len

func (l *LinkedHashMap[K, V]) Len() int

func (*LinkedHashMap[K, V]) MustGet

func (l *LinkedHashMap[K, V]) MustGet(key K) V

func (*LinkedHashMap[K, V]) Put

func (l *LinkedHashMap[K, V]) Put(key K, value V)

func (*LinkedHashMap[K, V]) Remove

func (l *LinkedHashMap[K, V]) Remove(key K)

func (*LinkedHashMap[K, V]) Values

func (l *LinkedHashMap[K, V]) Values() []V

type TreeMap

type TreeMap[K constraints.Ordered, V any] struct {
	K []K
	M map[K]V
}

func NewTreeMap

func NewTreeMap[K constraints.Ordered, V any]() *TreeMap[K, V]

func (*TreeMap[K, V]) Clear

func (t *TreeMap[K, V]) Clear()

func (*TreeMap[K, V]) ContainsKey

func (t *TreeMap[K, V]) ContainsKey(key K) bool

func (*TreeMap[K, V]) ForEach

func (t *TreeMap[K, V]) ForEach(f func(key K, value V) bool)

func (*TreeMap[K, V]) Get

func (t *TreeMap[K, V]) Get(key K) (V, bool)

func (*TreeMap[K, V]) IsEmpty

func (t *TreeMap[K, V]) IsEmpty() bool

func (*TreeMap[K, V]) Keys

func (t *TreeMap[K, V]) Keys() []K

func (*TreeMap[K, V]) Len

func (t *TreeMap[K, V]) Len() int

func (*TreeMap[K, V]) MustGet

func (t *TreeMap[K, V]) MustGet(key K) V

func (*TreeMap[K, V]) Put

func (t *TreeMap[K, V]) Put(key K, value V)

func (*TreeMap[K, V]) Remove

func (t *TreeMap[K, V]) Remove(key K)

func (*TreeMap[K, V]) Values

func (t *TreeMap[K, V]) Values() []V

Jump to

Keyboard shortcuts

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