hashmap

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 20, 2020 License: Apache-2.0 Imports: 4 Imported by: 1

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 New added in v0.1.0

func New() *HashMap

Create new empty HashMap

func (*HashMap) Clear

func (m *HashMap) Clear()

Clear HashMap

func (*HashMap) Count added in v0.1.0

func (m *HashMap) Count(matchFunc matchFunc) int

Count function

func (*HashMap) Delete added in v0.1.0

func (m *HashMap) Delete(k gotypes.K) *HashMap

delete key

func (*HashMap) Filter

func (m *HashMap) Filter(matchFunc matchFunc) *HashMap

Filter function

func (*HashMap) ForEach

func (m *HashMap) ForEach(eachFunc eachFunc)

ForEach function

func (*HashMap) Get

func (m *HashMap) Get(k gotypes.K) gotypes.V

Get entry

func (*HashMap) Key

func (m *HashMap) Key(k gotypes.K) bool

Check contains key

func (*HashMap) Keys

func (m *HashMap) Keys() *hashset.HashSet

Get Keys HashSet

func (*HashMap) Map

func (m *HashMap) Map(mapFunc mapFunc) *HashMap

Map function

func (*HashMap) MatchAll

func (m *HashMap) MatchAll(matchFunc matchFunc) bool

MatchAll function

func (*HashMap) MatchAny

func (m *HashMap) MatchAny(matchFunc matchFunc) bool

matchAny function

func (*HashMap) MatchNone

func (m *HashMap) MatchNone(matchFunc matchFunc) bool

matchNone function

func (*HashMap) Put

func (m *HashMap) Put(k gotypes.K, v gotypes.V) *HashMap

push entry

func (*HashMap) Reduce added in v0.1.0

func (m *HashMap) Reduce(val gotypes.E, reduceFunc reduceFunc) gotypes.E

Count function

func (*HashMap) Size

func (m *HashMap) Size() int

return HashMap size

func (*HashMap) Value

func (m *HashMap) Value(v gotypes.V) bool

Check contains value

func (*HashMap) Values

func (m *HashMap) Values() *arraylist.ArrayList

Get Values ArrayList

Jump to

Keyboard shortcuts

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