Package com.google.common.collect
Class Collections2.TransformedCollection<F,T>
java.lang.Object
java.util.AbstractCollection<T>
com.google.common.collect.Collections2.TransformedCollection<F,T>
- All Implemented Interfaces:
Iterable<T>,Collection<T>
- Enclosing class:
Collections2
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTransformedCollection(Collection<F> fromCollection, Function<? super F, ? extends T> function) -
Method Summary
Methods inherited from class java.util.AbstractCollection
add, addAll, contains, containsAll, remove, removeAll, retainAll, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
equals, hashCode, parallelStream, stream, toArray
-
Field Details
-
fromCollection
-
function
-
-
Constructor Details
-
TransformedCollection
TransformedCollection(Collection<F> fromCollection, Function<? super F, ? extends T> function)
-
-
Method Details
-
clear
public void clear()- Specified by:
clearin interfaceCollection<F>- Overrides:
clearin classAbstractCollection<T>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceCollection<F>- Overrides:
isEmptyin classAbstractCollection<T>
-
iterator
- Specified by:
iteratorin interfaceCollection<F>- Specified by:
iteratorin interfaceIterable<F>- Specified by:
iteratorin classAbstractCollection<T>
-
spliterator
-
forEach
-
removeIf
-
size
public int size()- Specified by:
sizein interfaceCollection<F>- Specified by:
sizein classAbstractCollection<T>
-