Class NArrayList
Provides the base class for a generic list (items can be accessed by
index).
-
NObject
-
NArrayList
implements
ArrayAccess,
Countable,
IteratorAggregate
Methods summary
public
ArrayIterator
|
#
getIterator( )
Returns an iterator over all items.
Returns an iterator over all items.
Returns
Implementation of
|
public
integer
|
#
count( )
Returns items count.
Returns
integer
Implementation of
|
public
|
#
offsetSet( integer $index, mixed $value )
Replaces or appends a item.
Replaces or appends a item.
Parameters
- $index
integer
- $value
mixed
Throws
Implementation of
|
public
mixed
|
#
offsetGet( integer $index )
Returns a item.
Parameters
Returns
mixed
Throws
Implementation of
|
public
boolean
|
#
offsetExists( integer $index )
Determines whether a item exists.
Determines whether a item exists.
Parameters
Returns
boolean
Implementation of
|
public
|
#
offsetUnset( integer $index )
Removes the element at the specified position in this list.
Removes the element at the specified position in this list.
Parameters
Throws
Implementation of
|