org.jvnet.hyperjaxb3.item
Class AbstractItemList<ListType,ItemType extends Item<ListType>>

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<ListType>
          extended by org.jvnet.hyperjaxb3.item.AbstractItemList<ListType,ItemType>
All Implemented Interfaces:
Serializable, Iterable<ListType>, Collection<ListType>, List<ListType>, ItemList<ListType,ItemType>
Direct Known Subclasses:
DefaultItemList

public abstract class AbstractItemList<ListType,ItemType extends Item<ListType>>
extends AbstractList<ListType>
implements ItemList<ListType,ItemType>, Serializable

See Also:
Serialized Form

Field Summary
protected  List<ItemType> core
           
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
AbstractItemList(List<ItemType> core)
           
 
Method Summary
 void add(int index, ListType element)
           
 ListType get(int index)
           
 ListType remove(int index)
           
 ListType set(int index, ListType element)
           
 int size()
           
 
Methods inherited from class java.util.AbstractList
add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subList
 
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jvnet.hyperjaxb3.item.ItemList
create
 
Methods inherited from interface java.util.List
add, addAll, addAll, clear, contains, containsAll, equals, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, removeAll, retainAll, subList, toArray, toArray
 

Field Detail

core

protected final List<ItemType extends Item<ListType>> core
Constructor Detail

AbstractItemList

public AbstractItemList(List<ItemType> core)
Method Detail

get

public ListType get(int index)
Specified by:
get in interface List<ListType>
Specified by:
get in class AbstractList<ListType>

set

public ListType set(int index,
                    ListType element)
Specified by:
set in interface List<ListType>
Overrides:
set in class AbstractList<ListType>

add

public void add(int index,
                ListType element)
Specified by:
add in interface List<ListType>
Overrides:
add in class AbstractList<ListType>

remove

public ListType remove(int index)
Specified by:
remove in interface List<ListType>
Overrides:
remove in class AbstractList<ListType>

size

public int size()
Specified by:
size in interface Collection<ListType>
Specified by:
size in interface List<ListType>
Specified by:
size in class AbstractCollection<ListType>


Copyright © 2005-2011. All Rights Reserved.