Documentation
¶
Index ¶
- type HashMap
- func (m *HashMap[K, V]) Clear()
- func (m *HashMap[K, V]) ContainsKey(key K) bool
- func (m *HashMap[K, V]) ForEach(callback func(key K, value V) bool)
- func (m *HashMap[K, V]) Get(key K) (V, bool)
- func (m *HashMap[K, V]) IsEmpty() bool
- func (m *HashMap[K, V]) Keys() []K
- func (m *HashMap[K, V]) Merge(other *HashMap[K, V])
- func (m *HashMap[K, V]) Put(key K, value V)
- func (m *HashMap[K, V]) PutIfAbsent(key K, value V) V
- func (m *HashMap[K, V]) Remove(key K)
- func (m *HashMap[K, V]) Replace(key K, newValue V) bool
- func (m *HashMap[K, V]) Size() int
- func (m *HashMap[K, V]) Snapshot() map[K]V
- func (m *HashMap[K, V]) Values() []V
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HashMap ¶ added in v1.0.3
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 ¶ added in v1.0.3
func (*HashMap[K, V]) PutIfAbsent ¶ added in v1.0.3
func (m *HashMap[K, V]) PutIfAbsent(key K, value V) V
Click to show internal directories.
Click to hide internal directories.