soot.util
Class StationaryArrayList

java.lang.Object
  |
  +--java.util.AbstractCollection
        |
        +--java.util.AbstractList
              |
              +--java.util.ArrayList
                    |
                    +--soot.util.StationaryArrayList
All Implemented Interfaces:
java.lang.Cloneable, java.util.Collection, java.util.List, java.util.RandomAccess, java.io.Serializable

public class StationaryArrayList
extends java.util.ArrayList

This class implements an ArrayList where the equality and hashCode use object equality, not list equality. This is important for putting Lists into HashMaps. The notation "Stationary" refers to the fact that the List stays "fixed" under list changes.

See Also:
Serialized Form

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

Constructor Detail

StationaryArrayList

public StationaryArrayList()
Method Detail

hashCode

public int hashCode()
Specified by:
hashCode in interface java.util.List
Overrides:
hashCode in class java.util.AbstractList

equals

public boolean equals(java.lang.Object other)
Specified by:
equals in interface java.util.List
Overrides:
equals in class java.util.AbstractList