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:
java.io.Serializable,java.lang.Iterable<T>,java.util.Collection<T>,java.util.List<T>
- Enclosing class:
- Lists
private static class Lists.TransformingSequentialList<F,T> extends java.util.AbstractSequentialList<T> implements java.io.SerializableImplementation of a sequential transforming list.
-
-
Constructor Summary
Constructors Constructor Description TransformingSequentialList(java.util.List<F> fromList, Function<? super F,? extends T> function)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()The default implementation inherited is based on iteration and removal of each element which can be overkill.java.util.ListIterator<T>listIterator(int index)booleanremoveIf(java.util.function.Predicate<? super T> filter)intsize()-
Methods inherited from class java.util.AbstractSequentialList
add, addAll, get, iterator, remove, set
-
Methods inherited from class java.util.AbstractList
add, equals, hashCode, indexOf, lastIndexOf, listIterator, removeRange, subList
-
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
-
-
-
-
Field Detail
-
fromList
final java.util.List<F> fromList
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Method Detail
-
clear
public void clear()
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.
-
size
public int size()
-
listIterator
public java.util.ListIterator<T> listIterator(int index)
-
-