Documentation ¶
Index ¶
- type AbstractMap
- func (a *AbstractMap[K, V]) Clear()
- func (a *AbstractMap[K, V]) ContainsKey(key K) bool
- func (a *AbstractMap[K, V]) ContainsValue(value V) bool
- func (a *AbstractMap[K, V]) Entries() []Entry[K, V]
- func (a *AbstractMap[K, V]) Get(key K) V
- func (a *AbstractMap[K, V]) IsEmpty() bool
- func (a *AbstractMap[K, V]) Keys() []K
- func (a *AbstractMap[K, V]) Put(key K, value V) V
- func (a *AbstractMap[K, V]) PutAll(p Map[K, V])
- func (a *AbstractMap[K, V]) Remove(value V) V
- func (a *AbstractMap[K, V]) Size() int
- func (a *AbstractMap[K, V]) Values() []V
- type Entry
- type Map
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AbstractMap ¶
type AbstractMap[K constraints.Ordered, V any] struct { }
func (*AbstractMap[K, V]) Clear ¶
func (a *AbstractMap[K, V]) Clear()
func (*AbstractMap[K, V]) ContainsKey ¶
func (a *AbstractMap[K, V]) ContainsKey(key K) bool
func (*AbstractMap[K, V]) ContainsValue ¶
func (a *AbstractMap[K, V]) ContainsValue(value V) bool
func (*AbstractMap[K, V]) Entries ¶
func (a *AbstractMap[K, V]) Entries() []Entry[K, V]
func (*AbstractMap[K, V]) Get ¶
func (a *AbstractMap[K, V]) Get(key K) V
func (*AbstractMap[K, V]) IsEmpty ¶
func (a *AbstractMap[K, V]) IsEmpty() bool
func (*AbstractMap[K, V]) Keys ¶
func (a *AbstractMap[K, V]) Keys() []K
func (*AbstractMap[K, V]) Put ¶
func (a *AbstractMap[K, V]) Put(key K, value V) V
func (*AbstractMap[K, V]) PutAll ¶
func (a *AbstractMap[K, V]) PutAll(p Map[K, V])
func (*AbstractMap[K, V]) Remove ¶
func (a *AbstractMap[K, V]) Remove(value V) V
func (*AbstractMap[K, V]) Size ¶
func (a *AbstractMap[K, V]) Size() int
func (*AbstractMap[K, V]) Values ¶
func (a *AbstractMap[K, V]) Values() []V
type Entry ¶
type Entry[K constraints.Ordered, V any] interface { Key() K Value() V SetValue(value V) *V }
type Map ¶
type Map[K constraints.Ordered, V any] interface { Size() int IsEmpty() bool ContainsKey(key K) bool ContainsValue(value V) bool Get(key K) *V Put(key K, value V) *V Remove(key K) *V PutAll(p Map[K, V]) PutMAll(p map[K]V) Clear() Keys() []K Values() []V Entries() []Entry[K, V] ToMap() map[K]V }
Map interface definition
Click to show internal directories.
Click to hide internal directories.