org.jvnet.hyperjaxb3.item
Class ConvertedList<O,I>

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<O>
          extended by org.jvnet.hyperjaxb3.item.ConvertedList<O,I>
All Implemented Interfaces:
Iterable<O>, Collection<O>, List<O>

public class ConvertedList<O,I>
extends AbstractList<O>


Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
ConvertedList(List<I> inner, Converter<I,O> converter)
           
 
Method Summary
 void add(int index, O element)
           
 O get(int index)
           
 O remove(int index)
           
 O set(int index, O 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 java.util.List
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray
 

Constructor Detail

ConvertedList

public ConvertedList(List<I> inner,
                     Converter<I,O> converter)
Method Detail

get

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

set

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

add

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

remove

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

size

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


Copyright © 2005-2014. All Rights Reserved.