sortedmap

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: 3 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Float64KeySortedMap

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

Float64KeySortedMap float64作为Key的排序Map

func NewFloat64KeySortedMap

func NewFloat64KeySortedMap() *Float64KeySortedMap

NewFloat64KeySortedMap 构造Float64KeySortedMap @return *Float64KeySortedMap

func (*Float64KeySortedMap) Contains

func (m *Float64KeySortedMap) Contains(key int) (ok bool)

Contains 判断Key是否存在 @param key @return ok

func (*Float64KeySortedMap) Get

func (m *Float64KeySortedMap) Get(key float64) (val interface{}, ok bool)

Get 根据Key查询Value @param key @return val @return ok

func (*Float64KeySortedMap) Length

func (m *Float64KeySortedMap) Length() int

Length 长度 @return int

func (*Float64KeySortedMap) Put

func (m *Float64KeySortedMap) Put(key float64, val interface{})

Put 写入KV @param key @param val

func (*Float64KeySortedMap) Range

func (m *Float64KeySortedMap) Range(f func(key float64, val interface{}) (isContinue bool))

Range 范围查询迭代 @param f

func (*Float64KeySortedMap) Remove

func (m *Float64KeySortedMap) Remove(key float64) (val interface{}, ok bool)

Remove 移除Key @param key @return val @return ok

type IntKeySortedMap

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

IntKeySortedMap 以int为Key的排序Map

func NewIntKeySortedMap

func NewIntKeySortedMap() *IntKeySortedMap

NewIntKeySortedMap 构造IntKeySortedMap @return *IntKeySortedMap

func (*IntKeySortedMap) Contains

func (m *IntKeySortedMap) Contains(key int) (ok bool)

Contains Key是否存在 @param key @return ok

func (*IntKeySortedMap) Get

func (m *IntKeySortedMap) Get(key int) (val interface{}, ok bool)

Get 查询Key对应的Value

func (*IntKeySortedMap) Length

func (m *IntKeySortedMap) Length() int

Length 长度 @return int

func (*IntKeySortedMap) Put

func (m *IntKeySortedMap) Put(key int, val interface{})

Put 写入KV @param key @param val

func (*IntKeySortedMap) Range

func (m *IntKeySortedMap) Range(f func(val interface{}) (isContinue bool))

Range 范围查询迭代 @param f

func (*IntKeySortedMap) Remove

func (m *IntKeySortedMap) Remove(key int) (val interface{}, ok bool)

Remove 移除某个Key和对应Value @param key @return val @return ok

type StringKeySortedMap

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

StringKeySortedMap 以string为key的排序Map

func NewStringKeySortedMap

func NewStringKeySortedMap() *StringKeySortedMap

NewStringKeySortedMap 构造StringKeySortedMap @return *StringKeySortedMap

func NewStringKeySortedMapWithBytesData

func NewStringKeySortedMapWithBytesData(data map[string][]byte) *StringKeySortedMap

NewStringKeySortedMapWithBytesData 基于map[string][]byte构造StringKeySortedMap @param data @return *StringKeySortedMap

func NewStringKeySortedMapWithData

func NewStringKeySortedMapWithData(data map[string]string) *StringKeySortedMap

NewStringKeySortedMapWithData 基于map[string]string构造StringKeySortedMap @param data @return *StringKeySortedMap

func NewStringKeySortedMapWithInterfaceData

func NewStringKeySortedMapWithInterfaceData(data map[string]interface{}) *StringKeySortedMap

NewStringKeySortedMapWithInterfaceData 基于map[string]interface{}构造StringKeySortedMap @param data @return *StringKeySortedMap

func (*StringKeySortedMap) Contains

func (m *StringKeySortedMap) Contains(key string) (ok bool)

Contains 是否存在Key @param key @return ok

func (*StringKeySortedMap) Get

func (m *StringKeySortedMap) Get(key string) (val interface{}, ok bool)

Get 根据Key获得Value @param key @return val @return ok

func (*StringKeySortedMap) Length

func (m *StringKeySortedMap) Length() int

Length 数据量 @return int

func (*StringKeySortedMap) Put

func (m *StringKeySortedMap) Put(key string, val interface{})

Put put KV到Map @param key @param val

func (*StringKeySortedMap) Range

func (m *StringKeySortedMap) Range(f func(key string, val interface{}) (isContinue bool))

Range 范围迭代 @param f

func (*StringKeySortedMap) Remove

func (m *StringKeySortedMap) Remove(key string) (val interface{}, ok bool)

Remove 移除某个Key和对应Value @param key @return val @return ok

Jump to

Keyboard shortcuts

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