Package org.ujmp.core.collections
Class MapToListWrapper<A>
- java.lang.Object
-
- org.ujmp.core.collections.MapToListWrapper<A>
-
-
Constructor Summary
Constructors Constructor Description MapToListWrapper(java.util.Map<java.lang.Integer,A> map)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(int index, A element)
boolean
add(A e)
boolean
addAll(int index, java.util.Collection<? extends A> c)
boolean
addAll(java.util.Collection<? extends A> c)
void
clear()
boolean
contains(java.lang.Object o)
boolean
containsAll(java.util.Collection<?> c)
A
get(int index)
java.util.Map<java.lang.Integer,A>
getWrappedObject()
Returns the object that is wrapped inside the wrapperint
indexOf(java.lang.Object o)
boolean
isEmpty()
java.util.Iterator<A>
iterator()
int
lastIndexOf(java.lang.Object o)
java.util.ListIterator<A>
listIterator()
java.util.ListIterator<A>
listIterator(int index)
A
remove(int index)
boolean
remove(java.lang.Object o)
boolean
removeAll(java.util.Collection<?> c)
boolean
retainAll(java.util.Collection<?> c)
A
set(int index, A element)
void
setWrappedObject(java.util.Map<java.lang.Integer,A> object)
int
size()
java.util.List<A>
subList(int fromIndex, int toIndex)
java.lang.Object[]
toArray()
<T> T[]
toArray(T[] a)
-
-
-
Field Detail
-
map
private java.util.Map<java.lang.Integer,A> map
-
pos
private int pos
-
start
private int start
-
-
Constructor Detail
-
MapToListWrapper
public MapToListWrapper(java.util.Map<java.lang.Integer,A> map)
-
-
Method Detail
-
add
public boolean add(A e)
-
addAll
public boolean addAll(java.util.Collection<? extends A> c)
-
addAll
public boolean addAll(int index, java.util.Collection<? extends A> c)
- Specified by:
addAll
in interfacejava.util.List<A>
-
clear
public void clear()
-
contains
public boolean contains(java.lang.Object o)
-
containsAll
public boolean containsAll(java.util.Collection<?> c)
-
indexOf
public int indexOf(java.lang.Object o)
- Specified by:
indexOf
in interfacejava.util.List<A>
-
isEmpty
public boolean isEmpty()
-
iterator
public java.util.Iterator<A> iterator()
-
lastIndexOf
public int lastIndexOf(java.lang.Object o)
- Specified by:
lastIndexOf
in interfacejava.util.List<A>
-
listIterator
public java.util.ListIterator<A> listIterator()
- Specified by:
listIterator
in interfacejava.util.List<A>
-
listIterator
public java.util.ListIterator<A> listIterator(int index)
- Specified by:
listIterator
in interfacejava.util.List<A>
-
remove
public boolean remove(java.lang.Object o)
-
removeAll
public boolean removeAll(java.util.Collection<?> c)
-
retainAll
public boolean retainAll(java.util.Collection<?> c)
-
size
public int size()
-
subList
public java.util.List<A> subList(int fromIndex, int toIndex)
- Specified by:
subList
in interfacejava.util.List<A>
-
toArray
public java.lang.Object[] toArray()
-
toArray
public <T> T[] toArray(T[] a)
-
getWrappedObject
public java.util.Map<java.lang.Integer,A> getWrappedObject()
Description copied from interface:Wrapper
Returns the object that is wrapped inside the wrapper- Specified by:
getWrappedObject
in interfaceWrapper<A>
- Returns:
- the inner object
-
setWrappedObject
public void setWrappedObject(java.util.Map<java.lang.Integer,A> object)
-
-