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, subList
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public int size()
size
in interface java.util.Collection
size
in interface java.util.List
size
in class java.util.AbstractCollection
public java.lang.Object get(int i) throws java.lang.IndexOutOfBoundsException
get
in interface java.util.List
get
in class java.util.AbstractList
java.lang.IndexOutOfBoundsException