Documentation ¶
Index ¶
- func Empty(lst *list.List) bool
- func NotEmpty(lst *list.List) bool
- type Any
- type Arraylist
- func (lst *Arraylist) Add(element ...Any)
- func (lst *Arraylist) Contains(element Any) (bool, int)
- func (lst *Arraylist) Empty() bool
- func (lst *Arraylist) Get(index int) Any
- func (lst *Arraylist) IndexOf(element Any) int
- func (lst *Arraylist) Remove(element Any) bool
- func (lst *Arraylist) RemoveAtIndex(index int) Any
- func (lst *Arraylist) Size() int
- type Listx
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Arraylist ¶
type Arraylist struct {
// contains filtered or unexported fields
}
Arraylist array lst
func (*Arraylist) Add ¶
Add save element to array list
@receiver lst lst @param element array element
func (*Arraylist) Contains ¶
Contains judge array exist element, and return exist result and index
@receiver lst @param element element @return bool exist result @return int index
func (*Arraylist) Empty ¶
Empty judge array is empty
@receiver lst @return bool true => empty, false => not empty
func (*Arraylist) Get ¶
Get get element from array list at index
@receiver lst @param index element index @return Any current result
func (*Arraylist) IndexOf ¶
IndexOf index element from array list
@receiver lst @param element element @return int current element index
func (*Arraylist) Remove ¶
Remove delete from array list
@receiver lst @param element element @return bool true or false
func (*Arraylist) RemoveAtIndex ¶
RemoveAtIndex from array list at index RemoveAtIndex remove from array list at index
@receiver lst lst @param index array index @return any
Click to show internal directories.
Click to hide internal directories.