org.jvnet.hyperjaxb3.item
Class AbstractMixedItemList<EffectiveListType,ListType extends EffectiveListType,ItemType extends MixedItem<ListType>>

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<EffectiveListType>
          extended by org.jvnet.hyperjaxb3.item.AbstractMixedItemList<EffectiveListType,ListType,ItemType>
All Implemented Interfaces:
Iterable<EffectiveListType>, Collection<EffectiveListType>, List<EffectiveListType>, MixedItemList<EffectiveListType,ListType,ItemType>
Direct Known Subclasses:
DefaultMixedItemList

public abstract class AbstractMixedItemList<EffectiveListType,ListType extends EffectiveListType,ItemType extends MixedItem<ListType>>
extends AbstractList<EffectiveListType>
implements MixedItemList<EffectiveListType,ListType,ItemType>


Field Summary
protected  List<ItemType> core
           
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
AbstractMixedItemList(List<ItemType> core)
           
 
Method Summary
 void add(int index, EffectiveListType element)
           
 EffectiveListType get(int index)
           
 EffectiveListType remove(int index)
           
 EffectiveListType set(int index, EffectiveListType 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.MixedItemList
create, 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 MixedItem<ListType>> core
Constructor Detail

AbstractMixedItemList

public AbstractMixedItemList(List<ItemType> core)
Method Detail

get

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

set

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

add

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

remove

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

size

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


Copyright © 2005-2011. All Rights Reserved.