arraylist

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2021 License: MIT Imports: 0 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AbstractArrayList

type AbstractArrayList struct {
	ArrayList
}

func (AbstractArrayList) Swap

func (list AbstractArrayList) Swap(from int, to int)

type ArrayList

type ArrayList interface {
	Get(index int) interface{}
	Set(index int, value interface{})
	Swap(from int, to int)
	Add(value interface{})
	RemoveAt(index int)
	RemoveLast() interface{}
	GetLength() int
	Clean()
}

type Float32ArrayList

type Float32ArrayList struct {
	AbstractArrayList
	// contains filtered or unexported fields
}

func NewFloat32ArrayList

func NewFloat32ArrayList(arr []float32) *Float32ArrayList

func (*Float32ArrayList) Add added in v1.9.0

func (list *Float32ArrayList) Add(value interface{})

func (*Float32ArrayList) Clean added in v1.10.0

func (list *Float32ArrayList) Clean()

func (*Float32ArrayList) Get

func (list *Float32ArrayList) Get(index int) interface{}

func (*Float32ArrayList) GetLength

func (list *Float32ArrayList) GetLength() int

func (*Float32ArrayList) RemoveLast added in v1.9.0

func (list *Float32ArrayList) RemoveLast() interface{}

func (*Float32ArrayList) Set

func (list *Float32ArrayList) Set(index int, value interface{})

type Float64ArrayList

type Float64ArrayList struct {
	AbstractArrayList
	// contains filtered or unexported fields
}

func NewFloat64ArrayList

func NewFloat64ArrayList(arr []float64) *Float64ArrayList

func (*Float64ArrayList) Add added in v1.9.0

func (list *Float64ArrayList) Add(value interface{})

func (*Float64ArrayList) Clean added in v1.10.0

func (list *Float64ArrayList) Clean()

func (*Float64ArrayList) Get

func (list *Float64ArrayList) Get(index int) interface{}

func (*Float64ArrayList) GetLength

func (list *Float64ArrayList) GetLength() int

func (*Float64ArrayList) RemoveLast added in v1.9.0

func (list *Float64ArrayList) RemoveLast() interface{}

func (*Float64ArrayList) Set

func (list *Float64ArrayList) Set(index int, value interface{})

type IntArrayList

type IntArrayList struct {
	AbstractArrayList
	// contains filtered or unexported fields
}

func NewIntArrayList

func NewIntArrayList(arr []int) *IntArrayList

func (*IntArrayList) Add added in v1.9.0

func (list *IntArrayList) Add(value interface{})

func (*IntArrayList) Clean added in v1.10.0

func (list *IntArrayList) Clean()

func (*IntArrayList) Get

func (list *IntArrayList) Get(index int) interface{}

func (*IntArrayList) GetLength

func (list *IntArrayList) GetLength() int

func (*IntArrayList) RemoveLast added in v1.9.0

func (list *IntArrayList) RemoveLast() interface{}

func (*IntArrayList) Set

func (list *IntArrayList) Set(index int, value interface{})

type StringArrayList

type StringArrayList struct {
	AbstractArrayList
	// contains filtered or unexported fields
}

func NewStringArrayList

func NewStringArrayList(arr []string) *StringArrayList

func (*StringArrayList) Add added in v1.9.0

func (list *StringArrayList) Add(value interface{})

func (*StringArrayList) Clean added in v1.10.0

func (list *StringArrayList) Clean()

func (*StringArrayList) Get

func (list *StringArrayList) Get(index int) interface{}

func (*StringArrayList) GetLength

func (list *StringArrayList) GetLength() int

func (*StringArrayList) RemoveLast added in v1.9.0

func (list *StringArrayList) RemoveLast() interface{}

func (*StringArrayList) Set

func (list *StringArrayList) Set(index int, value interface{})

Jump to

Keyboard shortcuts

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