hashtable

package
v0.0.0-...-3b2a8e7 Latest Latest
Warning

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

Go to latest
Published: May 18, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HashCode

func HashCode(source interface{}) uint64

Types

type HashTable

type HashTable struct {
	M int
	// contains filtered or unexported fields
}

func New

func New(M int) *HashTable

func (*HashTable) Add

func (h *HashTable) Add(key interface{}, value interface{})

func (*HashTable) Contains

func (h *HashTable) Contains(key interface{}) bool

func (*HashTable) Get

func (h *HashTable) Get(key interface{}) interface{}

func (*HashTable) GetSize

func (h *HashTable) GetSize() int

func (*HashTable) Remove

func (h *HashTable) Remove(key interface{}) interface{}

func (*HashTable) Set

func (h *HashTable) Set(key interface{}, value interface{})

Jump to

Keyboard shortcuts

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