Module:libutilPackage:org.milescript.utilParent:ObjectCopyright (c) 2007, 2008 Point5U, LLC
Milescript - LibUtil Library: Project Home | Documentation

org.milescript.util.Collection<U>

Methods

add

boolean add(U object)

Ensures that this collection contains the specified element (optional operation).

Returns
core.boolean

Parameters

NameTypeDescription
objectU

addAll

boolean addAll(Collection<U> c)

Adds all of the elements in the specified collection to this collection (optional operation).

Returns
core.boolean

Parameters

NameTypeDescription
corg.milescript.util.Collection<U>

clear

boolean clear()

Removes all of the elements from this collection (optional operation).

Returns
core.boolean

contains

boolean contains(U object)

Returns true if this collection contains the specified element.

Returns
core.boolean

Parameters

NameTypeDescription
objectU

containsAll

boolean containsAll(Collection<U> c)

Returns true if this collection contains all of the elements in the specified collection.

Returns
core.boolean

Parameters

NameTypeDescription
corg.milescript.util.Collection<U>

equals

boolean equals(Collection<U> c)

Compares the specified Collection with this collection for equality.

Returns
core.boolean

Parameters

NameTypeDescription
corg.milescript.util.Collection<U>

isEmpty

boolean isEmpty()

Returns true if this collection contains no elements.

Returns
core.boolean

remove

boolean remove(U object)

Removes a single instance of the specified element from this collection, if it is present (optional operation).

Returns
core.boolean

Parameters

NameTypeDescription
objectU

removeAll

boolean removeAll(Collection<U> c)

Removes all this collection's elements that are also contained in the specified collection (optional operation).

Returns
core.boolean

Parameters

NameTypeDescription
corg.milescript.util.Collection<U>

retainAll

boolean retainAll(Collection<U> c)

Retains only the elements in this collection that are contained in the specified collection (optional operation).

Returns
core.boolean

Parameters

NameTypeDescription
corg.milescript.util.Collection<U>

size

int size()

Returns the number of elements in this collection.

Returns
core.int

toArray

Array<U> toArray()

Returns an array containing all of the elements in this collection.

Returns
core.Array<U>