Class Internals.ArrayCollection
- All Implemented Interfaces:
Iterable<Object>, Collection<Object>
- Enclosing interface:
Internals
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class AbstractCollection
add, addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Collection
equals, hashCode, parallelStream, removeIf, spliterator, stream, toArray
-
Field Details
-
arr
-
-
Constructor Details
-
ArrayCollection
ArrayCollection(Object[] arr)
-
-
Method Details
-
iterator
-
size
public int size()- Specified by:
sizein interfaceCollection<Object>- Specified by:
sizein classAbstractCollection<Object>
-
toArray
- Specified by:
toArrayin interfaceCollection<Object>- Overrides:
toArrayin classAbstractCollection<Object>
-