| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
  |
  +--java.util.AbstractCollection
        |
        +--java.util.AbstractList
              |
              +--org.jutil.java.collections.Singleton
| Inner Class Summary | |
|  class | Singleton.SingletonIterator | 
| Inner classes inherited from class java.util.AbstractList | 
| java.util.AbstractList.1 | 
| Field Summary | |
| static java.lang.String | CVS_REVISION | 
| Fields inherited from class java.util.AbstractList | 
| modCount | 
| Constructor Summary | |
| Singleton(java.lang.Object onlyElement)Initialize a new Singleton containing the given element. | |
| Method Summary | |
|  boolean | add(java.lang.Object o)See superclass | 
|  boolean | addAll(java.util.Collection c)See superclass | 
|  void | clear()See superclass | 
|  boolean | contains(java.lang.Object o)See superclass | 
|  java.lang.Object | get(int index)See superclass | 
|  java.lang.Object | getOnlyElement()Return the only element in this Singleton. | 
|  boolean | isEmpty()See superclass | 
|  java.util.Iterator | iterator()See superclass | 
|  boolean | remove(java.lang.Object o)See superclass | 
|  boolean | removeAll(java.util.Collection c)See superclass | 
|  boolean | retainAll(java.util.Collection c)See superclass | 
|  java.lang.Object | set(int index,
    java.lang.Object object)See superclass | 
|  int | size()See superclass | 
|  java.lang.Object[] | toArray()See superclass | 
|  java.lang.Object[] | toArray(java.lang.Object[] a)See superclass | 
| Methods inherited from class java.util.AbstractList | 
| add, addAll, equals, hashCode, indexOf, lastIndexOf, listIterator, listIterator, remove, removeRange, subList | 
| Methods inherited from class java.util.AbstractCollection | 
| containsAll, toString | 
| Methods inherited from class java.lang.Object | 
| clone, finalize, getClass, notify, notifyAll, wait, wait, wait | 
| Methods inherited from interface java.util.Set | 
| containsAll, equals, hashCode | 
| Methods inherited from interface java.util.List | 
| containsAll | 
| Field Detail | 
public static final java.lang.String CVS_REVISION
| Constructor Detail | 
public Singleton(java.lang.Object onlyElement)
onlyElement - The only element of this Singleton.| Method Detail | 
public java.lang.Object getOnlyElement()
public int size()
public boolean isEmpty()
public boolean contains(java.lang.Object o)
public java.util.Iterator iterator()
public java.lang.Object[] toArray()
public java.lang.Object[] toArray(java.lang.Object[] a)
public java.lang.Object get(int index)
public boolean add(java.lang.Object o)
            throws java.lang.UnsupportedOperationException
public boolean remove(java.lang.Object o)
               throws java.lang.UnsupportedOperationException
public boolean addAll(java.util.Collection c)
               throws java.lang.UnsupportedOperationException
public boolean retainAll(java.util.Collection c)
                  throws java.lang.UnsupportedOperationException
public boolean removeAll(java.util.Collection c)
                  throws java.lang.UnsupportedOperationException
public void clear()
           throws java.lang.UnsupportedOperationException
public java.lang.Object set(int index,
                            java.lang.Object object)
                     throws java.lang.UnsupportedOperationException
| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||