common

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: May 6, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AbstractList

type AbstractList struct {
	AddWithIndex func(index int, element int)
	Remove       func(index int) (int, bool)
	Clear        func()
	Get          func(index int) *int
	Set          func(index int, element int) (int, bool)
	IndexOf      func(element int) *int
	// contains filtered or unexported fields
}

func (*AbstractList) Add

func (al *AbstractList) Add(element int)

func (*AbstractList) Contains

func (al *AbstractList) Contains(element int) bool

func (*AbstractList) IsEmpty

func (al *AbstractList) IsEmpty() bool

func (*AbstractList) RemoveElement

func (al *AbstractList) RemoveElement(element int)

func (*AbstractList) Size

func (al *AbstractList) Size() int

type ArrayList

type ArrayList struct {
	AbstractList
	// contains filtered or unexported fields
}

func NewArrayList

func NewArrayList() *ArrayList

func NewArrayListWithCapacity

func NewArrayListWithCapacity(capacity int) *ArrayList

func (*ArrayList) AddWithIndex

func (arrayList *ArrayList) AddWithIndex(index int, element int)

func (*ArrayList) Clear

func (arrayList *ArrayList) Clear()

func (*ArrayList) Get

func (arrayList *ArrayList) Get(index int) *int

func (*ArrayList) IndexOf

func (arrayList *ArrayList) IndexOf(element int) *int

func (*ArrayList) Remove

func (arrayList *ArrayList) Remove(index int) (int, bool)

func (*ArrayList) Set

func (arrayList *ArrayList) Set(index int, element int) (int, bool)

Jump to

Keyboard shortcuts

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