multimap

package
v0.0.0-...-5ee5d88 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MultiMap

type MultiMap[T1, T2 comparable] struct {
	// contains filtered or unexported fields
}

func NewMultiMap

func NewMultiMap[T1, T2 comparable]() *MultiMap[T1, T2]

func (*MultiMap[T1, T2]) Add

func (o *MultiMap[T1, T2]) Add(t1 T1, t2 T2) error

func (*MultiMap[T1, T2]) DeleteT1

func (o *MultiMap[T1, T2]) DeleteT1(key T1) bool

DeleteT1 It is a dangerous action, please use DeleteT2 instead of it.

func (*MultiMap[T1, T2]) DeleteT2

func (o *MultiMap[T1, T2]) DeleteT2(key T2) bool

func (*MultiMap[T1, T2]) LookupByT1

func (o *MultiMap[T1, T2]) LookupByT1(key T1) (value sets.Set[T2], exists bool)

func (*MultiMap[T1, T2]) LookupByT2

func (o *MultiMap[T1, T2]) LookupByT2(key T2) (value T1, exists bool)

Jump to

Keyboard shortcuts

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