Метод |
Описание |
|
__construct ( ) |
Initializes the map. |
|
add ( mixed $key, mixed $object, integer $lifetime ) : null |
This method adds the passed object with the passed key
to the instance. |
|
addAll ( array $array ) : AppserverIo\Collections\CollectionInterface |
This method appends all elements of the
passed array to the Collection. |
|
clear ( ) : void |
This method initializes the Collection and removes
all exsiting entries. |
|
exists ( mixed $key ) : boolean |
This method checks if the element with the passed
key exists in the Collection. |
|
get ( mixed $key ) : mixed |
This method returns the element with the passed key
from the Collection. |
|
getLifetime ( ) : array |
Returns the lifetime of the items the instance contains. |
|
isEmpty ( ) : boolean |
This returns true if the Collection has no
entries, otherwise false. |
|
remove ( mixed $key, callable $beforeRemove = null ) : void |
This method removes the element with the passed
key, that has to be an integer, from the
IndexedCollection. |
|
size ( ) : integer |
This method returns the number of entries of the Collection. |
|
toArray ( ) : array |
This method returns an array with the
items of the Dictionary. |
|
toIndexedArray ( ) : array |
This method returns the internal array
with the keys and the related values. |
|