Package com.google.common.collect
Class Lists.TransformingSequentialList<F,T>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.AbstractSequentialList<T>
com.google.common.collect.Lists.TransformingSequentialList<F,T>
- All Implemented Interfaces:
Serializable,Iterable<T>,Collection<T>,List<T>
- Enclosing class:
- Lists
private static class Lists.TransformingSequentialList<F,T>
extends AbstractSequentialList<T>
implements Serializable
Implementation of a sequential transforming list.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final longFields inherited from class java.util.AbstractList
modCount -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlistIterator(int index) booleanprotected voidremoveRange(int fromIndex, int toIndex) The default implementation inherited is based on iteration and removal of each element which can be overkill.intsize()Methods inherited from class java.util.AbstractSequentialList
add, addAll, get, iterator, remove, setMethods inherited from class java.util.AbstractList
add, clear, equals, hashCode, indexOf, lastIndexOf, listIterator, subListMethods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, stream, toArrayMethods inherited from interface java.util.List
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
-
Field Details
-
fromList
-
function
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
TransformingSequentialList
-
-
Method Details
-
removeRange
protected void removeRange(int fromIndex, int toIndex) The default implementation inherited is based on iteration and removal of each element which can be overkill. That's why we forward this call directly to the backing list.- Overrides:
removeRangein classAbstractList<T>
-
size
public int size()- Specified by:
sizein interfaceCollection<F>- Specified by:
sizein interfaceList<F>- Specified by:
sizein classAbstractCollection<T>
-
listIterator
- Specified by:
listIteratorin interfaceList<F>- Specified by:
listIteratorin classAbstractSequentialList<T>
-
removeIf
- Specified by:
removeIfin interfaceCollection<F>
-