arraylist

package
v0.0.0-...-a261c41 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2023 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 ArrayList

type ArrayList[T comparable] struct {
	// contains filtered or unexported fields
}

func NewArrayList

func NewArrayList[T comparable]() *ArrayList[T]

func (*ArrayList[T]) Add

func (list *ArrayList[T]) Add(item T)

func (*ArrayList[T]) AddAll

func (list *ArrayList[T]) AddAll(items ...T)

func (*ArrayList[T]) Get

func (list *ArrayList[T]) Get(index int) T

func (*ArrayList[T]) IndexOf

func (list *ArrayList[T]) IndexOf(item T) int

func (*ArrayList[T]) LastIndexOf

func (list *ArrayList[T]) LastIndexOf(item T) int

func (*ArrayList[T]) Remove

func (list *ArrayList[T]) Remove(index int)

func (*ArrayList[T]) Set

func (list *ArrayList[T]) Set(index int, item T)

func (*ArrayList[T]) Size

func (list *ArrayList[T]) Size() int

func (*ArrayList[T]) String

func (list *ArrayList[T]) String() string

Jump to

Keyboard shortcuts

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