orderedcontainers

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 11, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OrderedChainDict

type OrderedChainDict[K comparable, V any] struct {
	dict.Dict[K, V]
	// contains filtered or unexported fields
}

func NewOrderedChainDict

func NewOrderedChainDict[K comparable, V any]() *OrderedChainDict[K, V]

func (*OrderedChainDict[K, V]) Clear

func (d *OrderedChainDict[K, V]) Clear() *OrderedChainDict[K, V]

func (OrderedChainDict[K, V]) Copy

func (d OrderedChainDict[K, V]) Copy() OrderedChainDict[K, V]

func (*OrderedChainDict[K, V]) Delete

func (d *OrderedChainDict[K, V]) Delete(key K) bool

func (OrderedChainDict[K, V]) Equal

func (d OrderedChainDict[K, V]) Equal(another OrderedChainDict[K, V]) bool

func (OrderedChainDict[K, V]) IndexOf

func (d OrderedChainDict[K, V]) IndexOf(key K) int

func (OrderedChainDict[K, V]) Items

func (d OrderedChainDict[K, V]) Items() []*dict.DictItem[K, V]

func (OrderedChainDict[K, V]) KeyAt

func (d OrderedChainDict[K, V]) KeyAt(index int) (K, error)

func (OrderedChainDict[K, V]) Keys

func (d OrderedChainDict[K, V]) Keys() []K

func (OrderedChainDict[K, V]) MarshalJSON

func (d OrderedChainDict[K, V]) MarshalJSON() ([]byte, error)

func (*OrderedChainDict[K, V]) Pop

func (d *OrderedChainDict[K, V]) Pop(key K, args ...V) (value V, err error)

func (*OrderedChainDict[K, V]) PopItem

func (d *OrderedChainDict[K, V]) PopItem() (key K, value V, err error)

func (*OrderedChainDict[K, V]) Set

func (d *OrderedChainDict[K, V]) Set(key K, value V) *OrderedChainDict[K, V]

func (OrderedChainDict[K, V]) String

func (d OrderedChainDict[K, V]) String() string

func (*OrderedChainDict[K, V]) UnmarshalJSON

func (d *OrderedChainDict[K, V]) UnmarshalJSON(data []byte) (err error)

func (*OrderedChainDict[K, V]) Update

func (d *OrderedChainDict[K, V]) Update(another OrderedChainDict[K, V]) *OrderedChainDict[K, V]

func (OrderedChainDict[K, V]) Values

func (d OrderedChainDict[K, V]) Values() []V

type OrderedChainSet

type OrderedChainSet[T comparable] struct {
	set.Set[T]
	// contains filtered or unexported fields
}

func NewOrderedChainSet

func NewOrderedChainSet[T comparable](entries ...T) *OrderedChainSet[T]

func (*OrderedChainSet[T]) Add

func (s *OrderedChainSet[T]) Add(element T) *OrderedChainSet[T]

func (OrderedChainSet[T]) At

func (s OrderedChainSet[T]) At(index int) (T, error)

func (*OrderedChainSet[T]) Clear

func (s *OrderedChainSet[T]) Clear() *OrderedChainSet[T]

func (*OrderedChainSet[T]) Copy

func (s *OrderedChainSet[T]) Copy() OrderedChainSet[T]

func (*OrderedChainSet[T]) Discard

func (s *OrderedChainSet[T]) Discard(element T) bool

func (*OrderedChainSet[T]) Elements

func (s *OrderedChainSet[T]) Elements() []T

func (OrderedChainSet[T]) Equal

func (s OrderedChainSet[T]) Equal(another OrderedChainSet[T]) bool

func (OrderedChainSet[T]) IndexOf

func (s OrderedChainSet[T]) IndexOf(element T) int

func (OrderedChainSet[T]) MarshalJSON

func (s OrderedChainSet[T]) MarshalJSON() ([]byte, error)

func (*OrderedChainSet[T]) Pop

func (s *OrderedChainSet[T]) Pop() (element T, err error)

func (OrderedChainSet[T]) String

func (s OrderedChainSet[T]) String() string

func (OrderedChainSet[T]) ToList

func (s OrderedChainSet[T]) ToList() linkedlist.LinkedList[T]

func (*OrderedChainSet[T]) UnmarshalJSON

func (s *OrderedChainSet[T]) UnmarshalJSON(data []byte) (err error)

func (*OrderedChainSet[T]) Update

func (s *OrderedChainSet[T]) Update(another OrderedChainSet[T]) *OrderedChainSet[T]

type OrderedDict

type OrderedDict[K comparable, V any] struct {
	dict.Dict[K, V]
	// contains filtered or unexported fields
}

func NewOrderedDict

func NewOrderedDict[K comparable, V any]() *OrderedDict[K, V]

func (*OrderedDict[K, V]) Clear

func (d *OrderedDict[K, V]) Clear() *OrderedDict[K, V]

func (OrderedDict[K, V]) Copy

func (d OrderedDict[K, V]) Copy() OrderedDict[K, V]

func (*OrderedDict[K, V]) Delete

func (d *OrderedDict[K, V]) Delete(key K) bool

func (OrderedDict[K, V]) Equal

func (d OrderedDict[K, V]) Equal(another OrderedDict[K, V]) bool

func (OrderedDict[K, V]) IndexOf

func (d OrderedDict[K, V]) IndexOf(key K) int

func (OrderedDict[K, V]) Items

func (d OrderedDict[K, V]) Items() []*dict.DictItem[K, V]

func (OrderedDict[K, V]) KeyAt

func (d OrderedDict[K, V]) KeyAt(index int) (K, error)

func (OrderedDict[K, V]) Keys

func (d OrderedDict[K, V]) Keys() []K

func (OrderedDict[K, V]) MarshalJSON

func (d OrderedDict[K, V]) MarshalJSON() ([]byte, error)

func (*OrderedDict[K, V]) Pop

func (d *OrderedDict[K, V]) Pop(key K, args ...V) (value V, err error)

func (*OrderedDict[K, V]) PopItem

func (d *OrderedDict[K, V]) PopItem() (key K, value V, err error)

func (*OrderedDict[K, V]) Set

func (d *OrderedDict[K, V]) Set(key K, value V) *OrderedDict[K, V]

func (OrderedDict[K, V]) String

func (d OrderedDict[K, V]) String() string

func (*OrderedDict[K, V]) UnmarshalJSON

func (d *OrderedDict[K, V]) UnmarshalJSON(data []byte) (err error)

func (*OrderedDict[K, V]) Update

func (d *OrderedDict[K, V]) Update(another OrderedDict[K, V]) *OrderedDict[K, V]

func (OrderedDict[K, V]) Values

func (d OrderedDict[K, V]) Values() []V

type OrderedSet

type OrderedSet[T comparable] struct {
	set.Set[T]
	// contains filtered or unexported fields
}

func NewOrderedSet

func NewOrderedSet[T comparable](entries ...T) *OrderedSet[T]

func (*OrderedSet[T]) Add

func (s *OrderedSet[T]) Add(element T) *OrderedSet[T]

func (OrderedSet[T]) At

func (s OrderedSet[T]) At(index int) (T, error)

func (*OrderedSet[T]) Clear

func (s *OrderedSet[T]) Clear() *OrderedSet[T]

func (OrderedSet[T]) Copy

func (s OrderedSet[T]) Copy() OrderedSet[T]

func (*OrderedSet[T]) Discard

func (s *OrderedSet[T]) Discard(element T) bool

func (OrderedSet[T]) Elements

func (s OrderedSet[T]) Elements() []T

func (OrderedSet[T]) Equal

func (s OrderedSet[T]) Equal(another OrderedSet[T]) bool

func (OrderedSet[T]) IndexOf

func (s OrderedSet[T]) IndexOf(element T) int

func (OrderedSet[T]) MarshalJSON

func (s OrderedSet[T]) MarshalJSON() ([]byte, error)

func (*OrderedSet[T]) Pop

func (s *OrderedSet[T]) Pop() (element T, err error)

func (OrderedSet[T]) String

func (s OrderedSet[T]) String() string

func (OrderedSet[T]) ToList

func (s OrderedSet[T]) ToList() arraylist.ArrayList[T]

func (*OrderedSet[T]) UnmarshalJSON

func (s *OrderedSet[T]) UnmarshalJSON(data []byte) (err error)

func (*OrderedSet[T]) Update

func (s *OrderedSet[T]) Update(another OrderedSet[T]) *OrderedSet[T]

Jump to

Keyboard shortcuts

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