org.xins.common.types.standard
Class List.Value
java.lang.Object
org.xins.common.types.ItemList
org.xins.common.types.standard.List.Value
- Enclosing class:
- List
- public static final class List.Value
- extends ItemList
Inner class that represents a list of java.lang.String.
Method Summary |
void |
add(String value)
Add a new element in the list. |
String |
get(int index)
Get an element from the list. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
List.Value
public List.Value()
add
public void add(String value)
- Add a new element in the list.
- Parameters:
value
- the new value to add, cannot be null
.
- Throws:
IllegalArgumentException
- if value == null
.
get
public String get(int index)
- Get an element from the list.
- Parameters:
index
- The position of the required element.
- Returns:
- The element at the specified position, cannot be
null
.
See http://www.xins.org/.