Global

Methods

add(e) → {boolean}

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

Parameters:
Name Type Description
e Object
Source:
Returns:
Type
boolean

addAll(c) → {boolean}

Appends all of the elements in the specified collection to the end of this list, in the order that they are returned by the specified collection's iterator (optional operation).

Parameters:
Name Type Description
c javascript.util.Collection
Source:
Returns:
Type
boolean

asList(array) → {ArrayList}

Parameters:
Name Type Description
array Array
Source:
Returns:
Type
ArrayList

contains(e) → {boolean}

Returns true if this set contains the specified element. More formally, returns true if and only if this set contains an element e such that (o==null ? e==null : o.equals(e)).

Parameters:
Name Type Description
e Object
Source:
Returns:
Type
boolean

empty() → {boolean}

Tests if this stack is empty.

Source:
Returns:

true if and only if this stack contains no items; false otherwise.

Type
boolean

entrySet() → {Set}

Returns a Set view of the mappings contained in this map. The set is backed by the map, so changes to the map are reflected in the set, and vice-versa. If the map is modified while an iteration over the set is in progress (except through the iterator's own remove operation, or through the setValue operation on a map entry returned by the iterator) the results of the iteration are undefined. The set supports element removal, which removes the corresponding mapping from the map, via the Iterator.remove, Set.remove, removeAll, retainAll and clear operations. It does not support the add or addAll operations.

Source:
Returns:

a set view of the mappings contained in this map

Type
Set

fixAfterInsertion(x)

Parameters:
Name Type Description
x Object
Source:

get(index) → {Object}

Returns the element at the specified position in this list.

Parameters:
Name Type Description
index number
Source:
Returns:
Type
Object

get(key) → {Object}

Returns the value to which the specified key is mapped, or null if this map contains no mapping for the key.

Parameters:
Name Type Description
key Object
Source:
Returns:
Type
Object

getFirstEntry() → {Object}

Source:
Returns:
Type
Object

hasNext() → {boolean}

Returns true if the iteration has more elements.

Source:
Returns:
Type
boolean

isEmpty() → {boolean}

Returns true if this collection contains no elements.

Source:
Returns:
Type
boolean

isEmpty() → {boolean}

Returns true if this collection contains no elements.

Source:
Returns:
Type
boolean

isEmpty() → {boolean}

Source:
Returns:
Type
boolean

iterator() → {javascript.util.Iterator}

Returns an iterator over the elements in this collection.

Source:
Returns:
Type
javascript.util.Iterator

next() → {Object}

Returns the next element in the iteration.

Source:
Returns:
Type
Object

peek() → {Object}

Looks at the object at the top of this stack without removing it from the stack.

Source:
Returns:
Type
Object

pop() → {Object}

Removes the object at the top of this stack and returns that object as the value of this function.

Source:
Returns:
Type
Object

push(e) → {Object}

Pushes an item onto the top of this stack.

Parameters:
Name Type Description
e Object
Source:
Returns:
Type
Object

put(key, value) → {Object}

Associates the specified value with the specified key in this map (optional operation).

Parameters:
Name Type Description
key Object
value Object
Source:
Returns:
Type
Object

remove(e) → {boolean}

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

Parameters:
Name Type Description
e Object
Source:
Returns:
Type
boolean

remove()

Removes from the underlying collection the last element returned by the iterator (optional operation).

Source:

rotateLeft(p)

Parameters:
Name Type Description
p Object
Source:

rotateRight(p)

Parameters:
Name Type Description
p Object
Source:

Returns the 1-based position where an object is on this stack. If the object o occurs as an item in this stack, this method returns the distance from the top of the stack of the occurrence nearest the top of the stack; the topmost item on the stack is considered to be at distance 1. The equals method is used to compare o to the items in this stack.

NOTE: does not currently actually use equals. (=== is used)

Parameters:
Name Type Description
o Object
Source:
Returns:

the 1-based position from the top of the stack where the object is located; the return value -1 indicates that the object is not on the stack.

Type
number

set(index, e) → {Object}

Replaces the element at the specified position in this list with the specified element (optional operation).

Parameters:
Name Type Description
index number
e Object
Source:
Returns:
Type
Object

size() → {number}

Returns an iterator over the elements in this collection.

Source:
Returns:
Type
number

size() → {number}

Returns the number of key-value mappings in this map.

Source:
Returns:
Type
number

size() → {number}

Source:
Returns:
Type
number

toArray() → {Array}

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

Source:
Returns:
Type
Array

toArray() → {Array}

Source:
Returns:
Type
Array

values() → {javascript.util.Collection}

Returns a Collection view of the values contained in this map.

Source:
Returns:
Type
javascript.util.Collection