hashtable

package
v0.0.0-...-da378b8 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package hashtable creates a ValueHashtable data structure for the Item type

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Key

type Key generic.Type

Key the key of the dictionary

type Value

type Value generic.Type

Value the content of the dictionary

type ValueHashtable

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

ValueHashtable the set of Items

func (*ValueHashtable) Get

func (ht *ValueHashtable) Get(k Key) Value

Get item with key k from the hashtable

func (*ValueHashtable) Put

func (ht *ValueHashtable) Put(k Key, v Value)

Put item with value v and key k into the hashtable

func (*ValueHashtable) Remove

func (ht *ValueHashtable) Remove(k Key)

Remove item with key k from hashtable

func (*ValueHashtable) Size

func (ht *ValueHashtable) Size() int

Size returns the number of the hashtable elements

Jump to

Keyboard shortcuts

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