org.apache.ojb.broker.util
Class IdentityArrayList
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList
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
Methods inherited from class java.util.ArrayList |
add, add, addAll, addAll, clear, clone, ensureCapacity, get, isEmpty, remove, removeRange, set, size, toArray, toArray, trimToSize |
IdentityArrayList
public IdentityArrayList()
IdentityArrayList
public IdentityArrayList(int initialCapacity)
IdentityArrayList
public IdentityArrayList(Collection c)
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.