...

Package hashtable

import "scheduler/hashtable"
Overview
Index

Overview ▾

Package hashtable creates a ValueHashtable data structure for the Item type

type Key

Key the key of the dictionary

type Key generic.Type

type Value

Value the content of the dictionary

type Value generic.Type

type ValueHashtable

ValueHashtable the set of Items

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

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