array_list

package
v0.0.0-...-9a4132b Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: MIT Imports: 1 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 any] struct {
	// contains filtered or unexported fields
}

func DefaultArrayList

func DefaultArrayList[T any]() *ArrayList[T]

DefaultArrayList 默认初始化 ArrayList

func NewArrayList

func NewArrayList[T any](capacity int) *ArrayList[T]

NewArrayList 初始化 ArrayList

func (*ArrayList[T]) Add

func (a *ArrayList[T]) Add(e T)

func (*ArrayList[T]) AddByIndex

func (a *ArrayList[T]) AddByIndex(e T, index int)

func (*ArrayList[T]) IsEmpty

func (a *ArrayList[T]) IsEmpty() bool

func (*ArrayList[T]) RemoveByIndex

func (a *ArrayList[T]) RemoveByIndex(index int) (oldValue T)

func (*ArrayList[T]) Size

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

func (*ArrayList[T]) String

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

String 数组转字符串

Jump to

Keyboard shortcuts

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