hashmap

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2020 License: GPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HashMap

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

define HashMap struct

func NewHashMap

func NewHashMap() *HashMap

create new empty HashMap

func (*HashMap) Clear

func (hashMap *HashMap) Clear()

clear hashMap

func (*HashMap) Filter

func (hashMap *HashMap) Filter(filterFn func(k Key, v Value) bool) *HashMap

filter function

func (*HashMap) ForEach

func (hashMap *HashMap) ForEach(fn func(k Key, v Value))

foreach function

func (*HashMap) Get

func (hashMap *HashMap) Get(key Key) Value

get entry

func (*HashMap) Key

func (hashMap *HashMap) Key(key Key) bool

check contains key

func (*HashMap) Keys

func (hashMap *HashMap) Keys() *set.HashSet

get Keys set

func (*HashMap) Map

func (hashMap *HashMap) Map(mapFn func(k Key, v Value) (Key, Value)) *HashMap

map function

func (*HashMap) MatchAll

func (hashMap *HashMap) MatchAll(matchAllFn func(k Key, v Value) bool) bool

matchAll function

func (*HashMap) MatchAny

func (hashMap *HashMap) MatchAny(matchAnyFn func(k Key, v Value) bool) bool

matchAny function

func (*HashMap) MatchNone

func (hashMap *HashMap) MatchNone(matchNoneFn func(k Key, v Value) bool) bool

matchNone function

func (*HashMap) Put

func (hashMap *HashMap) Put(key Key, value Value) *HashMap

push element

func (*HashMap) Size

func (hashMap *HashMap) Size() int

return hashMap size

func (*HashMap) Value

func (hashMap *HashMap) Value(value Value) bool

check contains value

func (*HashMap) Values

func (hashMap *HashMap) Values() *list.ArrayList

get Values list

type Key

type Key interface{}

define HashMap type

type Value

type Value interface{}

Jump to

Keyboard shortcuts

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