soot.util
Class SingletonList

java.lang.Object
  |
  +--java.util.AbstractCollection
        |
        +--java.util.AbstractList
              |
              +--soot.util.SingletonList

public class SingletonList
extends java.util.AbstractList

A list containing exactly one object, immutable.


Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
SingletonList(java.lang.Object o)
           
 
Method Summary
 boolean contains(java.lang.Object other)
           
 java.lang.Object get(int index)
           
 int size()
           
 
Methods inherited from class java.util.AbstractList
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
 
Methods inherited from class java.util.AbstractCollection
addAll, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SingletonList

public SingletonList(java.lang.Object o)
Method Detail

size

public int size()
Overrides:
size in class java.util.AbstractCollection

contains

public boolean contains(java.lang.Object other)
Overrides:
contains in class java.util.AbstractCollection

get

public java.lang.Object get(int index)
Overrides:
get in class java.util.AbstractList