|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ListPropertyI<T>
Extends CollectionPropertyI to add access with an integer index.
| Method Summary | |
|---|---|
Result<T> |
add(T value,
int ix)
Adds an element at specified index in the list. |
T |
get(int ix)
Returns the element at the specified index. |
Result<T> |
removeIndex(int ix)
Removed the element at the specified index in the list. |
Result<T> |
set(T value,
int ix)
Sets (exchanges) an element at specified index in the list. |
| Methods inherited from interface net.java.properties.CollectionPropertyI |
|---|
add, addAll, contains, containsAll, iterator, remove, removeAll, size |
| Methods inherited from interface net.java.properties.PropertyI |
|---|
get, set |
| Method Detail |
|---|
T get(int ix)
ix - The index for which to return the element. If >= size or < 0 an IndexOutOfBoundsException will be thrown.
ix.
Result<T> set(T value,
int ix)
value - The value to set.ix - The index for which to set the element. If >= size or < 0 an IndexOutOfBoundsException will be thrown.
Result<T> add(T value,
int ix)
value - The value to add.ix - The index that the index will be added at. If > size or < 0 an IndexOutOfBoundsException will be thrown.
If ix == size the value will be added last in the list.
Result<T> removeIndex(int ix)
ix - The index for which the element should be removed. If > size or < 0 an IndexOutOfBoundsException will be thrown.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||