E - The type of element managed by this collection.public abstract class ClosedCollection<E> extends Collection<E>
| Constructor and Description |
|---|
ClosedCollection() |
| Modifier and Type | Method and Description |
|---|---|
Iterator<E> |
createDefaultIterator()
This method creates a new default iterator for the collection.
|
E |
getElementAtIndex(int index)
This method returns the element at the specified index.
|
Collection<E> |
getElementsInRange(int firstIndex,
int lastIndex)
This method returns a collection of the elements in the specified index range.
|
int |
getIndexOfElement(E element)
This method return the index of the specified element, or zero if the element
is not found.
|
int |
getNumberOfElements() |
void |
removeAllElements()
This method removes all elements from the collection.
|
compareTo, containsAllElementsIn, containsAnyElementsIn, containsElement, equals, hashCode, isEmpty, iterator, normalizedIndex, toArrayaddSerializableClass, addSerializableClass, copy, toExposedString, toString, toStringpublic Iterator<E> createDefaultIterator()
Accessiblepublic int getNumberOfElements()
public E getElementAtIndex(int index)
Accessibleindex - The index of the element to be returned.public int getIndexOfElement(E element)
Accessibleelement - The element to be checked for in the collection.public Collection<E> getElementsInRange(int firstIndex, int lastIndex)
AccessiblefirstIndex - The index of the first element to be returned.lastIndex - the index of the last element to be returned.public void removeAllElements()
AccessibleCopyright © 2015 Crater Dog Technologies(TM). All rights reserved.