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:
java.lang.Iterable<T>
,java.util.Collection<T>
- Enclosing class:
- Collections2
static class Collections2.TransformedCollection<F,T> extends java.util.AbstractCollection<T>
-
-
Constructor Summary
Constructors Constructor Description TransformedCollection(java.util.Collection<F> fromCollection, Function<? super F,? extends T> function)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
void
forEach(java.util.function.Consumer<? super T> action)
boolean
isEmpty()
java.util.Iterator<T>
iterator()
boolean
removeIf(java.util.function.Predicate<? super T> filter)
int
size()
java.util.Spliterator<T>
spliterator()
-
Methods inherited from class java.util.AbstractCollection
add, addAll, contains, containsAll, remove, removeAll, retainAll, toArray, toArray, toString
-
-
-
-
Method Detail
-
clear
public void clear()
-
isEmpty
public boolean isEmpty()
-
iterator
public java.util.Iterator<T> iterator()
-
spliterator
public java.util.Spliterator<T> spliterator()
-
forEach
public void forEach(java.util.function.Consumer<? super T> action)
-
removeIf
public boolean removeIf(java.util.function.Predicate<? super T> filter)
-
-