Class FlatCollectionWrapper<T>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- org.apache.ignite.internal.util.GridSerializableCollection<T>
-
- org.apache.ignite.internal.util.lang.gridfunc.FlatCollectionWrapper<T>
-
- Type Parameters:
T- Type of the inner collections.
- All Implemented Interfaces:
Serializable,Iterable<T>,Collection<T>
public class FlatCollectionWrapper<T> extends GridSerializableCollection<T>
Wrapper which iterable over the elements of the inner collections.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FlatCollectionWrapper(Collection<? extends Collection<T>> cols)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisEmpty()@NotNull Iterator<T>iterator()intsize()StringtoString()-
Methods inherited from class java.util.AbstractCollection
add, addAll, clear, contains, containsAll, remove, removeAll, retainAll, toArray, toArray
-
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, removeIf, spliterator, stream, toArray
-
-
-
-
Constructor Detail
-
FlatCollectionWrapper
public FlatCollectionWrapper(Collection<? extends Collection<T>> cols)
- Parameters:
cols- Input collection of collections.
-
-
Method Detail
-
iterator
@NotNull public @NotNull Iterator<T> iterator()
- Specified by:
iteratorin interfaceCollection<T>- Specified by:
iteratorin interfaceIterable<T>- Specified by:
iteratorin classAbstractCollection<T>
-
size
public int size()
- Specified by:
sizein interfaceCollection<T>- Specified by:
sizein classAbstractCollection<T>
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceCollection<T>- Overrides:
isEmptyin classAbstractCollection<T>
-
toString
public String toString()
- Overrides:
toStringin classAbstractCollection<T>
-
-