linkedmap

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: May 29, 2023 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 LinkedMap

type LinkedMap struct {
	// contains filtered or unexported fields
}

func NewLinkedMap

func NewLinkedMap(capacity int) *LinkedMap

func (*LinkedMap) Capacity

func (lm *LinkedMap) Capacity() int

func (*LinkedMap) Clear

func (lm *LinkedMap) Clear()

func (*LinkedMap) Empty

func (lm *LinkedMap) Empty() bool

func (*LinkedMap) First

func (lm *LinkedMap) First() (interface{}, interface{})

func (*LinkedMap) FirstElement

func (lm *LinkedMap) FirstElement() *list.Element

func (*LinkedMap) Full

func (lm *LinkedMap) Full() bool

func (*LinkedMap) Get

func (lm *LinkedMap) Get(first interface{}) (interface{}, bool)

func (*LinkedMap) Has

func (lm *LinkedMap) Has(key interface{}) bool

func (*LinkedMap) Last

func (lm *LinkedMap) Last() (interface{}, interface{})

func (*LinkedMap) LastElement

func (lm *LinkedMap) LastElement() *list.Element

func (*LinkedMap) PushBack

func (lm *LinkedMap) PushBack(first interface{}, second interface{})

func (*LinkedMap) PushFront

func (lm *LinkedMap) PushFront(first interface{}, second interface{})

func (*LinkedMap) Remove

func (lm *LinkedMap) Remove(first interface{}) bool

func (*LinkedMap) SetCapacity

func (lm *LinkedMap) SetCapacity(capacity int)

func (*LinkedMap) Size

func (lm *LinkedMap) Size() int

func (*LinkedMap) SortList

func (lm *LinkedMap) SortList(cmp func(left interface{}, right interface{}) bool)

type Pair

type Pair struct {
	First, Second interface{}
}

Jump to

Keyboard shortcuts

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