Documentation ¶
Index ¶
- type AbstractList
- type ArrayList
- func (arrayList *ArrayList) AddWithIndex(index int, element int)
- func (arrayList *ArrayList) Clear()
- func (arrayList *ArrayList) Get(index int) *int
- func (arrayList *ArrayList) IndexOf(element int) *int
- func (arrayList *ArrayList) Remove(index int) (int, bool)
- func (arrayList *ArrayList) Set(index int, element int) (int, bool)
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 (*ArrayList) AddWithIndex ¶
Click to show internal directories.
Click to hide internal directories.