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, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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:
clear
in interfaceCollection<F>
- Overrides:
clear
in classAbstractCollection<T>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceCollection<F>
- Overrides:
isEmpty
in classAbstractCollection<T>
-
iterator
- Specified by:
iterator
in interfaceCollection<F>
- Specified by:
iterator
in interfaceIterable<F>
- Specified by:
iterator
in classAbstractCollection<T>
-
spliterator
-
forEach
-
removeIf
-
size
public int size()- Specified by:
size
in interfaceCollection<F>
- Specified by:
size
in classAbstractCollection<T>
-