linkedhashmap

package
v2.3.6 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: Apache-2.0 Imports: 1 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LinkedHashMap

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

LinkedHashMap 链接哈希表

func NewLinkedHashMap

func NewLinkedHashMap() *LinkedHashMap

NewLinkedHashMap 新建LinkedHashMap @return *LinkedHashMap

func (*LinkedHashMap) Add

func (linkMap *LinkedHashMap) Add(key string, val interface{}) bool

Add 添加一个KV到链接哈希表 @param key @param val @return bool

func (*LinkedHashMap) Get

func (linkMap *LinkedHashMap) Get(key string) interface{}

Get 根据Key获得Value @param key @return interface{}

func (linkMap *LinkedHashMap) GetLinkList() *list.List

GetLinkList 以list结构返回 @return *list.List

func (*LinkedHashMap) Remove

func (linkMap *LinkedHashMap) Remove(key string) (bool, interface{})

Remove 移除指定Key的KV @param key @return bool 是否移除成功 @return interface{} 被移除的对象Value

func (*LinkedHashMap) Size

func (linkMap *LinkedHashMap) Size() int

Size 占用大小 @return int

Jump to

Keyboard shortcuts

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