core

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 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 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

Jump to

Keyboard shortcuts

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