Package one.util.streamex
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 java.util.AbstractCollection
add, addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
equals, hashCode, parallelStream, removeIf, spliterator, stream, toArray
-
Field Details
-
arr
-
-
Constructor Details
-
ArrayCollection
ArrayCollection(Object[] arr)
-
-
Method Details
-
iterator
- Specified by:
iteratorin interfaceCollection<Object>- Specified by:
iteratorin interfaceIterable<Object>- Specified by:
iteratorin classAbstractCollection<Object>
-
size
public int size()- Specified by:
sizein interfaceCollection<Object>- Specified by:
sizein classAbstractCollection<Object>
-
toArray
- Specified by:
toArrayin interfaceCollection<Object>- Overrides:
toArrayin classAbstractCollection<Object>
-