hashset

package
v1.0.21 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HashSet

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

HashSet is an auto make set

func New

func New() *HashSet

func (*HashSet) Add

func (m *HashSet) Add(key interface{}) error

add adds Key to the head of the linked list.

func (*HashSet) AddOrUpdate

func (m *HashSet) AddOrUpdate(key interface{}, value interface{})

func (*HashSet) Clear

func (m *HashSet) Clear()

func (*HashSet) Contains

func (m *HashSet) Contains(key interface{}) bool

func (*HashSet) Count

func (m *HashSet) Count() int

func (*HashSet) Find

func (m *HashSet) Find(key interface{}) bool

func (*HashSet) Init

func (m *HashSet) Init() *HashSet

Init initializes or clears map m.

func (*HashSet) Keys

func (m *HashSet) Keys() []interface{}

func (*HashSet) Len

func (m *HashSet) Len() int

Len returns the number of items in the cache.

func (*HashSet) Peek

func (m *HashSet) Peek(key interface{}) bool

func (*HashSet) Remove

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

Remove removes Key from cl.

func (*HashSet) Size

func (m *HashSet) Size() int

Jump to

Keyboard shortcuts

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