public class SingletonList
extends java.util.AbstractList
implements java.io.Serializable
| Constructor and Description |
|---|
SingletonList(java.lang.Object obj) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
get(int i) |
int |
size() |
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subListaddAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic int size()
size in interface java.util.Collectionsize in interface java.util.Listsize in class java.util.AbstractCollectionpublic java.lang.Object get(int i)
throws java.lang.IndexOutOfBoundsException
get in interface java.util.Listget in class java.util.AbstractListjava.lang.IndexOutOfBoundsException