|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.cilib.container.StandardArray<E>
public class StandardArray<E>
Default wrapper class that implements a default array.
Constructor Summary | |
---|---|
StandardArray()
|
|
StandardArray(int elementLength)
|
Method Summary | ||
---|---|---|
E |
get(int index)
Get the element at the provided index. |
|
|
set(T object,
int index)
Set the element at index . |
|
int |
size()
Obtain the current size of the array structure. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StandardArray()
public StandardArray(int elementLength)
Method Detail |
---|
public int size()
size
in interface Array
public E get(int index)
get
in interface Array
index
- The index of the desired element.
index
, if available.public <T> void set(T object, int index)
index
.
set
in interface Array
T
- The generic type.object
- The object to place within the array.index
- The index to set the object at.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |