arraylist

package
v0.0.0-...-823f058 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SliceWrapper

type SliceWrapper[T any] struct {
	// contains filtered or unexported fields
}

func Wrap

func Wrap[T any](slice []T) *SliceWrapper[T]

func (*SliceWrapper[T]) Add

func (l *SliceWrapper[T]) Add(t T)

func (*SliceWrapper[T]) AddAll

func (l *SliceWrapper[T]) AddAll(other collections.Collection[T])

func (*SliceWrapper[T]) All

func (l *SliceWrapper[T]) All() iter.Seq[T]

func (*SliceWrapper[T]) Empty

func (l *SliceWrapper[T]) Empty() bool

func (*SliceWrapper[T]) Get

func (l *SliceWrapper[T]) Get(index int) T

func (*SliceWrapper[T]) Pop

func (l *SliceWrapper[T]) Pop() T

func (*SliceWrapper[T]) Push

func (l *SliceWrapper[T]) Push(t T)

func (*SliceWrapper[T]) Remove

func (l *SliceWrapper[T]) Remove() T

func (*SliceWrapper[T]) Set

func (l *SliceWrapper[T]) Set(index int, item T)

func (*SliceWrapper[T]) Size

func (l *SliceWrapper[T]) Size() int

func (*SliceWrapper[T]) String

func (l *SliceWrapper[T]) String() string

Jump to

Keyboard shortcuts

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