Class ReadOnlyCollectionView2X<T>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- org.apache.ignite.internal.util.GridSerializableCollection<T>
-
- org.apache.ignite.internal.util.lang.gridfunc.ReadOnlyCollectionView2X<T>
-
- Type Parameters:
T- Element type.
- All Implemented Interfaces:
Serializable,Iterable<T>,Collection<T>
public class ReadOnlyCollectionView2X<T> extends GridSerializableCollection<T>
Collections wrapper. A read-only view will be created over the element and given collections and no copying will happen.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ReadOnlyCollectionView2X(Collection<? extends T> c1, Collection<? extends T> c2)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontains(Object o)booleanequals(Object obj)@NotNull Iterator<T>iterator()intsize()-
Methods inherited from class java.util.AbstractCollection
add, addAll, clear, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
hashCode, parallelStream, removeIf, spliterator, stream, toArray
-
-
-
-
Constructor Detail
-
ReadOnlyCollectionView2X
public ReadOnlyCollectionView2X(Collection<? extends T> c1, Collection<? extends T> c2)
- Parameters:
c1- First collection.c2- SecondCollection.
-
-
Method Detail
-
iterator
@NotNull public @NotNull Iterator<T> iterator()
- Specified by:
iteratorin interfaceCollection<T>- Specified by:
iteratorin interfaceIterable<T>- Specified by:
iteratorin classAbstractCollection<T>
-
contains
public boolean contains(Object o)
- Specified by:
containsin interfaceCollection<T>- Overrides:
containsin classAbstractCollection<T>
-
size
public int size()
- Specified by:
sizein interfaceCollection<T>- Specified by:
sizein classAbstractCollection<T>
-
-