org.jvnet.hyperjaxb3.item
Class ConvertedList<O,I>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<O>
org.jvnet.hyperjaxb3.item.ConvertedList<O,I>
- All Implemented Interfaces:
- Iterable<O>, Collection<O>, List<O>
public class ConvertedList<O,I>
- extends AbstractList<O>
|
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 |
ConvertedList
public ConvertedList(List<I> inner,
Converter<I,O> converter)
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-2011. All Rights Reserved.