collection

package
v0.3.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Queue

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

func NewFifoQueue

func NewFifoQueue() *Queue

func (*Queue) Contains

func (q *Queue) Contains(item interface{}) bool

func (*Queue) Length

func (q *Queue) Length() int

func (*Queue) Pop

func (q *Queue) Pop() interface{}

func (*Queue) Push

func (q *Queue) Push(item interface{})

func (*Queue) PushUnique

func (q *Queue) PushUnique(item interface{})

func (*Queue) Remove

func (q *Queue) Remove(item interface{})

type QueueItem

type QueueItem interface {
	HashCode() string
}

Jump to

Keyboard shortcuts

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