org.apache.ojb.broker.util
Class IdentityArrayList

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList
              extended by org.apache.ojb.broker.util.IdentityArrayList
All Implemented Interfaces:
Serializable, Cloneable, Iterable, Collection, List, RandomAccess

public class IdentityArrayList
extends ArrayList

Object identity based List, use "==" instead of element_1.equals(element_2) to compare objects.

Version:
$Id: IdentityArrayList.java,v 1.1 2007-08-24 22:17:36 ewestfal Exp $
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
IdentityArrayList()
           
IdentityArrayList(Collection c)
           
IdentityArrayList(int initialCapacity)
           
 
Method Summary
 boolean contains(Object elem)
           
 int indexOf(Object elem)
           
 int lastIndexOf(Object elem)
           
 boolean remove(Object o)
           
 
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, ensureCapacity, get, isEmpty, remove, removeRange, set, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, 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, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList
 

Constructor Detail

IdentityArrayList

public IdentityArrayList()

IdentityArrayList

public IdentityArrayList(int initialCapacity)

IdentityArrayList

public IdentityArrayList(Collection c)
Method Detail

contains

public boolean contains(Object elem)
Specified by:
contains in interface Collection
Specified by:
contains in interface List
Overrides:
contains in class ArrayList

indexOf

public int indexOf(Object elem)
Specified by:
indexOf in interface List
Overrides:
indexOf in class ArrayList

lastIndexOf

public int lastIndexOf(Object elem)
Specified by:
lastIndexOf in interface List
Overrides:
lastIndexOf in class ArrayList

remove

public boolean remove(Object o)
Specified by:
remove in interface Collection
Specified by:
remove in interface List
Overrides:
remove in class ArrayList


Copyright © 2007-2011 The Kuali Foundation. All Rights Reserved.