org.xulux.dataprovider.bean
Class BeanMapping.FieldList

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList
              extended by org.xulux.dataprovider.bean.BeanMapping.FieldList
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable, java.util.Collection, java.util.List, java.util.RandomAccess
Enclosing class:
BeanMapping

public static class BeanMapping.FieldList
extends java.util.ArrayList

Inner ArrayList with an overriden indexOf Which checks equals on the object In the arraylist instead of the object passed

Author:
Martin van den Bemt
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
BeanMapping.FieldList()
          The fieldlist constructor
 
Method Summary
 int indexOf(java.lang.Object elem)
          Override the indexOf, since the java one is calling equals on elem and we want to call equals on the alement in the list.
 
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, isEmpty, lastIndexOf, remove, 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

BeanMapping.FieldList

public BeanMapping.FieldList()
The fieldlist constructor

Method Detail

indexOf

public int indexOf(java.lang.Object elem)
Override the indexOf, since the java one is calling equals on elem and we want to call equals on the alement in the list. Null will always return -1.

Specified by:
indexOf in interface java.util.List
Overrides:
indexOf in class java.util.ArrayList
Parameters:
elem - the element to find
Returns:
int - the position or -1 when not found


Copyright © 2006-2007 Martin van den Bemt. All Rights Reserved.