boolean |
add (mixed $element)
Appends the specified element at the end of this list |
boolean |
addAll (array|object $t)
Appends all the elements in the specified object at the end of this list |
boolean |
clear ()
Removes all the indices and elements in this list |
mixed |
drop (int $index)
Removes the specified index and the corresponding element from this list |
mixed |
get (int $index)
Returns the element at the specified index of this list |
boolean |
has (mixed $element)
Determines whether this list contains the specified element |
boolean |
hasAll (array|object $t)
Determines whether this list contains all the elements in the specified object |
int |
index (mixed $element)
Returns the index at which the specified element first appears in this list |
boolean |
insert (int $index, mixed $element)
Inserts or appends the specified element at the specified index of this list |
boolean |
insertAll (int $index, array|object $t)
Inserts or appends all the elements in the specified object at the specified index |
boolean |
isEmpty ()
Determines whether this list contains no element |
boolean |
remove (mixed $element)
Removes the specified element from this list |
boolean |
removeAll (array|object $t)
Removes all the elements in the specified object from this list |
mixed |
set (int $index, mixed $element)
Replaces the element at the specified index of this list to the specified element |
int |
size ()
Returns the number of elements in this list |
array |
toArray ()
Converts this list to an associated array |
Appends the specified element at the end of this list
mixed $element
Element to be appended
public boolean add (mixed $element)
Appends all the elements in the specified object at the end of this list
array|object $t
Object containing elements to be appended
public boolean addAll (array|object $t)
Removes all the indices and elements in this list
public boolean clear ()
Removes the specified index and the corresponding element from this list
int $index
Index to be removed
public mixed drop (int $index)
Returns the element at the specified index of this list
int $index
Index of element to be retrieved
public mixed get (int $index)
Determines whether this list contains the specified element
mixed $element
Element to determine
public boolean has (mixed $element)
Determines whether this list contains all the elements in the specified object
array|object $t
Object containing elements to determine
public boolean hasAll (array|object $t)
Returns the index at which the specified element first appears in this list
mixed $element
Element to search
public int index (mixed $element)
Inserts or appends the specified element at the specified index of this list
int $index
Index to insert at
mixed $element
Element to be inserted or appended
public boolean insert (int $index, mixed $element)
Inserts or appends all the elements in the specified object at the specified index
int $index
Index to insert at
array|object $t
Object containing elements to be inserted
public boolean insertAll (int $index, array|object $t)
Determines whether this list contains no element
public boolean isEmpty ()
Removes the specified element from this list
mixed $element
Element to be removed
public boolean remove (mixed $element)
Removes all the elements in the specified object from this list
array|object $t
Object containing the elements to be removed
public boolean removeAll (array|object $t)
Replaces the element at the specified index of this list to the specified element
int $index
Index of element to be replaced
mixed $element
Element to store
public mixed set (int $index, mixed $element)
Returns the number of elements in this list
public int size ()
Converts this list to an associated array
public array toArray ()