Package com.fizzed.rocker.runtime
Class PrimitiveCollections.AbstractPrimitiveCollection<T>
java.lang.Object
com.fizzed.rocker.runtime.PrimitiveCollections.AbstractPrimitiveCollection<T>
- All Implemented Interfaces:
Iterable<T>,Collection<T>
- Direct Known Subclasses:
PrimitiveCollections.BooleanCollection,PrimitiveCollections.ByteCollection,PrimitiveCollections.CharacterCollection,PrimitiveCollections.DoubleCollection,PrimitiveCollections.FloatCollection,PrimitiveCollections.IntegerCollection,PrimitiveCollections.LongCollection,PrimitiveCollections.ObjectCollection,PrimitiveCollections.ShortCollection
- Enclosing class:
PrimitiveCollections
public abstract static class PrimitiveCollections.AbstractPrimitiveCollection<T>
extends Object
implements Collection<T>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanaddAll(Collection<? extends T> c) voidclear()booleanbooleancontainsAll(Collection<?> c) abstract Tget(int index) booleanisEmpty()iterator()booleanbooleanremoveAll(Collection<?> c) booleanretainAll(Collection<?> c) intsize()Object[]toArray()<T> T[]toArray(T[] a) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Collection
equals, hashCode, parallelStream, removeIf, spliterator, stream, toArray
-
Field Details
-
size
private final int size
-
-
Constructor Details
-
AbstractPrimitiveCollection
public AbstractPrimitiveCollection(int size)
-
-
Method Details
-
size
public int size()- Specified by:
sizein interfaceCollection<T>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceCollection<T>
-
get
-
iterator
-
contains
- Specified by:
containsin interfaceCollection<T>
-
toArray
- Specified by:
toArrayin interfaceCollection<T>
-
toArray
public <T> T[] toArray(T[] 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>
-