Class LinkedMap.LinkedMapList<K>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<K>
-
- org.apache.commons.collections4.map.LinkedMap.LinkedMapList<K>
-
- All Implemented Interfaces:
Iterable<K>,Collection<K>,List<K>
static class LinkedMap.LinkedMapList<K> extends AbstractList<K>
List view of map.
-
-
Field Summary
-
Fields inherited from class java.util.AbstractList
modCount
-
-
Constructor Summary
Constructors Constructor Description LinkedMapList(LinkedMap<K,?> parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()booleancontains(Object obj)booleancontainsAll(Collection<?> coll)Kget(int index)intindexOf(Object obj)Iterator<K>iterator()intlastIndexOf(Object obj)ListIterator<K>listIterator()ListIterator<K>listIterator(int fromIndex)Kremove(int index)booleanremove(Object obj)booleanremoveAll(Collection<?> coll)booleanremoveIf(Predicate<? super K> filter)booleanretainAll(Collection<?> coll)intsize()List<K>subList(int fromIndexInclusive, int toIndexExclusive)Object[]toArray()<T> T[]toArray(T[] array)-
Methods inherited from class java.util.AbstractList
add, add, addAll, equals, hashCode, removeRange, set
-
Methods inherited from class java.util.AbstractCollection
addAll, isEmpty, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, stream, toArray
-
Methods inherited from interface java.util.List
addAll, isEmpty, replaceAll, sort, spliterator
-
-
-
-
Method Detail
-
size
public int size()
- Specified by:
sizein interfaceCollection<K>- Specified by:
sizein interfaceList<K>- Specified by:
sizein classAbstractCollection<K>
-
get
public K get(int index)
-
contains
public boolean contains(Object obj)
- Specified by:
containsin interfaceCollection<K>- Specified by:
containsin interfaceList<K>- Overrides:
containsin classAbstractCollection<K>
-
indexOf
public int indexOf(Object obj)
-
lastIndexOf
public int lastIndexOf(Object obj)
- Specified by:
lastIndexOfin interfaceList<K>- Overrides:
lastIndexOfin classAbstractList<K>
-
containsAll
public boolean containsAll(Collection<?> coll)
- Specified by:
containsAllin interfaceCollection<K>- Specified by:
containsAllin interfaceList<K>- Overrides:
containsAllin classAbstractCollection<K>
-
remove
public K remove(int index)
-
remove
public boolean remove(Object obj)
- Specified by:
removein interfaceCollection<K>- Specified by:
removein interfaceList<K>- Overrides:
removein classAbstractCollection<K>
-
removeAll
public boolean removeAll(Collection<?> coll)
- Specified by:
removeAllin interfaceCollection<K>- Specified by:
removeAllin interfaceList<K>- Overrides:
removeAllin classAbstractCollection<K>
-
retainAll
public boolean retainAll(Collection<?> coll)
- Specified by:
retainAllin interfaceCollection<K>- Specified by:
retainAllin interfaceList<K>- Overrides:
retainAllin classAbstractCollection<K>
-
clear
public void clear()
- Specified by:
clearin interfaceCollection<K>- Specified by:
clearin interfaceList<K>- Overrides:
clearin classAbstractList<K>
-
toArray
public Object[] toArray()
- Specified by:
toArrayin interfaceCollection<K>- Specified by:
toArrayin interfaceList<K>- Overrides:
toArrayin classAbstractCollection<K>
-
toArray
public <T> T[] toArray(T[] array)
- Specified by:
toArrayin interfaceCollection<K>- Specified by:
toArrayin interfaceList<K>- Overrides:
toArrayin classAbstractCollection<K>
-
listIterator
public ListIterator<K> listIterator()
- Specified by:
listIteratorin interfaceList<K>- Overrides:
listIteratorin classAbstractList<K>
-
listIterator
public ListIterator<K> listIterator(int fromIndex)
- Specified by:
listIteratorin interfaceList<K>- Overrides:
listIteratorin classAbstractList<K>
-
-