org.jaxen.util
public class SingletonList extends AbstractList
add()
and remove()
throw
UnsupportedOperationExceptions.
Version: 1.2b12
Field Summary | |
---|---|
Object | element |
Constructor Summary | |
---|---|
SingletonList(Object element)
Creates a new singleton list.
|
Method Summary | |
---|---|
Object | get(int index)
Returns the single element in the list.
|
int | size()
Returns 1.
|
Parameters: element the single member of the list
Returns: the only element in the list
Throws: IndexOutOfBoundsException if index is not 0
Returns: 1