soot.util
Class StationaryArrayList
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList
soot.util.StationaryArrayList
- All Implemented Interfaces:
- Serializable, Cloneable, Iterable, Collection, List, RandomAccess
public class StationaryArrayList
- extends 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
| Methods inherited from class java.util.ArrayList |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize |
StationaryArrayList
public StationaryArrayList()
hashCode
public int hashCode()
- Specified by:
hashCode in interface Collection- Specified by:
hashCode in interface List- Overrides:
hashCode in class AbstractList
equals
public boolean equals(Object other)
- Specified by:
equals in interface Collection- Specified by:
equals in interface List- Overrides:
equals in class AbstractList