Module:libutilPackage:org.milescript.utilParent:ObjectGenerated by MilescriptCompiler (Copyright 2008, Point5u LLC.)

org.milescript.util.ArrayList<U>

Inheritance : Object

Constructors

Signature
public ArrayList()

Methods

NameSignature
addboolean add(U object)
addvoid add(int index, U element)
addAllboolean addAll(Collection<U> c)
addAllboolean addAll(int index, Collection<U> c)
clearvoid clear()
containsboolean contains(U object)
containsAllboolean containsAll(Collection<U> c)
equalsboolean equals(Collection<U> c)
getU get(int index)
indexOfint indexOf(U object)
isEmptyboolean isEmpty()
lastIndexOfint lastIndexOf(U object)
removeU remove(int index)
removeboolean remove(U object)
removeAllboolean removeAll(Collection<U> c)
removeRangevoid removeRange(int fromIndex, int toIndex)
retainAllboolean retainAll(Collection<U> c)
setU set(int index, U element)
sizeint size()
subListList<U> subList(int fromIndex, int toIndex)
toArrayArray<U> toArray()

Constructors

public ArrayList()

Constructor.


Methods

add

boolean add(U object)

Returns
core.boolean

Parameters

NameTypeDescription
objectU

add

void add(int index, U element)

Parameters

NameTypeDescription
indexcore.int
elementU

addAll

boolean addAll(Collection<U> c)

Returns
core.boolean

Parameters

NameTypeDescription
corg.milescript.util.Collection<U>

addAll

boolean addAll(int index, Collection<U> c)

Returns
core.boolean

Parameters

NameTypeDescription
indexcore.int
corg.milescript.util.Collection<U>

clear

void clear()


contains

boolean contains(U object)

Returns
core.boolean

Parameters

NameTypeDescription
objectU

containsAll

boolean containsAll(Collection<U> c)

Returns
core.boolean

Parameters

NameTypeDescription
corg.milescript.util.Collection<U>

equals

boolean equals(Collection<U> c)

Returns
core.boolean

Parameters

NameTypeDescription
corg.milescript.util.Collection<U>

get

U get(int index)

Returns the element at the specified position in this list.

Returns
U

Parameters

NameTypeDescription
indexcore.int

indexOf

int indexOf(U object)

Returns
core.int

Parameters

NameTypeDescription
objectU

isEmpty

boolean isEmpty()

Returns
core.boolean

lastIndexOf

int lastIndexOf(U object)

Returns
core.int

Parameters

NameTypeDescription
objectU

remove

U remove(int index)

Returns
U

Parameters

NameTypeDescription
indexcore.int

remove

boolean remove(U object)

Returns
core.boolean

Parameters

NameTypeDescription
objectU

removeAll

boolean removeAll(Collection<U> c)

Returns
core.boolean

Parameters

NameTypeDescription
corg.milescript.util.Collection<U>

removeRange

void removeRange(int fromIndex, int toIndex)

Removes from this list all of the elements whose index is between fromIndex, inclusive, and toIndex, exclusive.

Parameters

NameTypeDescription
fromIndexcore.int
toIndexcore.int

retainAll

boolean retainAll(Collection<U> c)

Returns
core.boolean

Parameters

NameTypeDescription
corg.milescript.util.Collection<U>

set

U set(int index, U element)

Returns
U

Parameters

NameTypeDescription
indexcore.int
elementU

size

int size()

Returns the number of elements in this list.

Returns
core.int

subList

List<U> subList(int fromIndex, int toIndex)

Returns
org.milescript.util.List<U>

Parameters

NameTypeDescription
fromIndexcore.int
toIndexcore.int

toArray

Array<U> toArray()

Returns
core.Array<U>

Module:libutilPackage:org.milescript.utilParent:ObjectGenerated by MilescriptCompiler (Copyright 2008, Point5u LLC.)