linkedHashMap

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2022 License: Apache-2.0 Imports: 3 Imported by: 3

Documentation

Overview

Package linkedHashMap

@author: xwc1125

Package linkedHashMap

@author: xwc1125

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KV

type KV struct {
	Key interface{}
	Val interface{}
}

type LinkedHashMap

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

func NewLinkedHashMap

func NewLinkedHashMap() *LinkedHashMap

func (*LinkedHashMap) Add

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

Add 添加

func (*LinkedHashMap) AddFront

func (m *LinkedHashMap) AddFront(key interface{}, val interface{}) bool

func (*LinkedHashMap) BatchAdd

func (m *LinkedHashMap) BatchAdd(kvs ...KV)

BatchAdd 批量添加

func (*LinkedHashMap) Exist

func (m *LinkedHashMap) Exist(key interface{}) bool

Exist 判断是否存在

func (*LinkedHashMap) Get

func (m *LinkedHashMap) Get(key interface{}) (interface{}, bool)

Get 获取数据

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

GetLinkList 获取linklist

func (*LinkedHashMap) Len

func (m *LinkedHashMap) Len() int

Len 获取len

func (*LinkedHashMap) Lock

func (m *LinkedHashMap) Lock()

func (*LinkedHashMap) RLock

func (m *LinkedHashMap) RLock()

func (*LinkedHashMap) RUnlock

func (m *LinkedHashMap) RUnlock()

func (*LinkedHashMap) Remove

func (m *LinkedHashMap) Remove(key interface{})

Remove 删除

func (*LinkedHashMap) Unlock

func (m *LinkedHashMap) Unlock()

type Node

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

Jump to

Keyboard shortcuts

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