db
ListCollection Interface Reference

Inherits Collection.

Inherited by ArrayList.

Public Member Functions

 add ($e, $index=NULL)
 
 get ($index)
 
 indexOf ($o)
 
 lastIndexOf ($o)
 
 remove ($index)
 
 set ($index, $element)
 
 subList ($fromIndex, $toIndex)
 
- Public Member Functions inherited from Collection
 add ($element)
 
 addAll ($c)
 
 clear ()
 
 contains ($o)
 
 containsAll ($c)
 
 isEmpty ()
 
 removeElement ($o)
 
 removeAll ($c)
 
 retainAll ($c)
 
 size ()
 
 toArray ()
 

Detailed Description

indexovana kolekce pomoci celych cisel

Member Function Documentation

◆ add()

add (   $e,
  $index = NULL 
)

Appends the specified element to the end of this list (optional operation). pokud je nastaven $index Inserts the specified element at the specified position in this list (optional operation). a posune zbytek

Parameters
mixed$e
int$namena ktery index se ma pridat
Returns
boolean

Implemented in ArrayList.

◆ get()

get (   $index)

vrati prvek na indexu nebo vyvola vyjimku pokud je index mimo pole

Parameters
int$indexintex prvku

Implemented in ArrayList.

◆ indexOf()

indexOf (   $o)
Parameters
type$o
Returns
int|FALSE vraci int pokud najde FALSE pokud nenajde

Implemented in ArrayList.

◆ lastIndexOf()

lastIndexOf (   $o)
Parameters
type$o
Returns
int|FALSE vraci int pokud najde FALSE pokud nenajde

Implemented in ArrayList.

◆ remove()

remove (   $index)

odstrani prvek na indexu

Parameters
imxed$o
Returns
boolean

Implemented in ArrayList.

◆ set()

set (   $index,
  $element 
)

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

Returns
mixed the element previously at the specified position

Implemented in ArrayList.

◆ subList()

subList (   $fromIndex,
  $toIndex 
)
Parameters
type$fromIndex
type$toIndex
Returns
ListCollection Description

Implemented in ArrayList.


The documentation for this interface was generated from the following file: