linkedmap

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Copyright 2025 bibenga Inspired by Apache Commons Collections (Apache License 2.0)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDefault

func NewDefault[K comparable, V any]() orderedmap.Map[K, V]

Types

type LinkedMap

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

func New

func New[K comparable, V any](size int) *LinkedMap[K, V]

func (*LinkedMap[K, V]) Clear

func (m *LinkedMap[K, V]) Clear()

func (*LinkedMap[K, V]) Clone

func (m *LinkedMap[K, V]) Clone() orderedmap.Map[K, V]

func (*LinkedMap[K, V]) ContainsKey

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

func (*LinkedMap[K, V]) Delete

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

func (*LinkedMap[K, V]) Get

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

func (*LinkedMap[K, V]) IsEmpty

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

func (*LinkedMap[K, V]) Items

func (m *LinkedMap[K, V]) Items() iter.Seq2[K, V]

func (*LinkedMap[K, V]) Keys

func (m *LinkedMap[K, V]) Keys() iter.Seq[K]

func (*LinkedMap[K, V]) Put

func (m *LinkedMap[K, V]) Put(key K, value V) (V, bool)

func (*LinkedMap[K, V]) Size

func (m *LinkedMap[K, V]) Size() int

func (*LinkedMap[K, V]) String

func (m *LinkedMap[K, V]) String() string

func (*LinkedMap[K, V]) Values

func (m *LinkedMap[K, V]) Values() iter.Seq[V]

Jump to

Keyboard shortcuts

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