Class ArrayList

Description

ArrayList of objects that can be administered and searched, while hiding the internal implementation. This is an implementation of the ArrayList class in the Java language.

  • author: Arnold Cano
  • version: $Id: ArrayList.php,v 1.1.1.1.24.1 2011/10/04 11:19:40 afelixf Exp $

Located in /phrame/util/ArrayList.php (line 10)

Object
   |
   --ArrayList
Direct descendents
Class Description
Stack Stack of LIFO objects that can be administered and searched, while hiding the internal implementation. This is an implementation of the Stack class in the Java language.
Variable Summary
array $_elements
Method Summary
ArrayList ArrayList ([string $elements = array()])
boolean add (mixed $element)
boolean addAll (ArrayList $list)
void clear ()
boolean contains (mixed $element)
mixed get (integer $index)
mixed indexOf (mixed $element)
boolean isEmpty ()
mixed lastIndexOf (mixed $element)
mixed remove (integer $index)
void removeRange (integer $start, integer $end)
mixed set (integer $index, mixed $element)
integer size ()
array toArray ()
Variables
array $_elements = array() (line 15)
Methods
Constructor ArrayList (line 23)

Create an ArrayList with the specified elements.

  • access: public
ArrayList ArrayList ([string $elements = array()])
  • string $elements
add (line 46)

Appends the specified element to the end of this list.

  • access: public
boolean add (mixed $element)
  • mixed $element
addAll (line 59)

Appends all of the elements in the specified ArrayList to the end of this list, in the order that they are returned by the specified ArrayList's ListIterator.

  • access: public
boolean addAll (ArrayList $list)
clear (line 76)

Removes all of the elements from this list.

  • access: public
void clear ()
contains (line 87)

Returns true if this list contains the specified element.

  • access: public
boolean contains (mixed $element)
  • mixed $element
get (line 98)

Returns the element at the specified position in this list.

  • access: public
mixed get (integer $index)
  • integer $index
indexOf (line 109)

Searches for the first occurence of the given argument.

  • access: public
mixed indexOf (mixed $element)
  • mixed $element
isEmpty (line 119)

Tests if this list has no elements.

  • access: public
boolean isEmpty ()
lastIndexOf (line 131)

Returns the index of the last occurrence of the specified object in this list.

  • access: public
mixed lastIndexOf (mixed $element)
  • mixed $element
listIterator (line 35)

Get a ListIterator for the ArrayList.

  • access: public
ListIterator listIterator ()
remove (line 144)

Removes the element at the specified position in this list.

  • access: public
mixed remove (integer $index)
  • integer $index
removeRange (line 158)

Removes from this List all of the elements whose index is between start, inclusive and end, exclusive.

  • access: public
void removeRange (integer $start, integer $end)
  • integer $start
  • integer $end
set (line 171)

Replaces the element at the specified position in this list with the specified element.

  • access: public
mixed set (integer $index, mixed $element)
  • integer $index
  • mixed $element
size (line 183)

Returns the number of elements in this list.

  • access: public
integer size ()
toArray (line 194)

Returns an array containing all of the elements in this list in the correct order.

  • access: public
array toArray ()

Inherited Methods

Inherited From Object

Object::equals()
Object::toString()

Documentation generated on Wed, 05 Oct 2011 10:36:22 +0200 by phpDocumentor 1.4.1