Class AbstractCollectionView<T>
java.lang.Object
ch.ethz.sis.openbis.generic.asapi.v3.dto.common.fetchoptions.view.AbstractCollectionView<T>
- All Implemented Interfaces:
Serializable,Iterable<T>,Collection<T>
public abstract class AbstractCollectionView<T>
extends Object
implements Collection<T>, Serializable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractCollectionView(Collection<T> originalCollection, Integer from, Integer count) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanaddAll(Collection<? extends T> c) voidclear()booleanbooleancontainsAll(Collection<?> c) protected static <T> voidcopyItems(Collection<T> fromCollection, Collection<T> toCollection, Integer fromOrNull, Integer countOrNull) protected abstract Collection<T> createLimited(Collection<T> originalCollection, Integer fromOrNull, Integer countOrNull) booleaninthashCode()booleanisEmpty()iterator()booleanbooleanremoveAll(Collection<?> c) booleanretainAll(Collection<?> c) intsize()Object[]toArray()<R> R[]toArray(R[] a) toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, spliterator, stream, toArray
-
Constructor Details
-
AbstractCollectionView
-
-
Method Details
-
createLimited
protected abstract Collection<T> createLimited(Collection<T> originalCollection, Integer fromOrNull, Integer countOrNull) -
copyItems
protected static <T> void copyItems(Collection<T> fromCollection, Collection<T> toCollection, Integer fromOrNull, Integer countOrNull) -
size
public int size()- Specified by:
sizein interfaceCollection<T>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceCollection<T>
-
contains
- Specified by:
containsin interfaceCollection<T>
-
iterator
-
toArray
- Specified by:
toArrayin interfaceCollection<T>
-
toArray
public <R> R[] toArray(R[] a) - Specified by:
toArrayin interfaceCollection<T>
-
add
- Specified by:
addin interfaceCollection<T>
-
remove
- Specified by:
removein interfaceCollection<T>
-
containsAll
- Specified by:
containsAllin interfaceCollection<T>
-
addAll
- Specified by:
addAllin interfaceCollection<T>
-
removeAll
- Specified by:
removeAllin interfaceCollection<T>
-
retainAll
- Specified by:
retainAllin interfaceCollection<T>
-
clear
public void clear()- Specified by:
clearin interfaceCollection<T>
-
equals
- Specified by:
equalsin interfaceCollection<T>- Overrides:
equalsin classObject
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceCollection<T>- Overrides:
hashCodein classObject
-
getLimitedCollection
-
toString
-
getOriginalCollection
-