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 |
|---|---|
craterdog.core.Iterator<E> |
createIterator() |
E |
getElement(int index)
This method returns the element at the specified index.
|
Collection<E> |
getElements(int firstIndex,
int lastIndex)
This method returns a collection of the elements in the specified index range.
|
int |
getIndex(E element)
This method return the index of the specified element, or zero if the element
is not found.
|
int |
getSize() |
void |
removeAll()
This method removes all elements from the collection.
|
containsAll, containsAny, containsElement, normalizedIndexcompareTo, equals, hashCode, toArrayaddSerializableClass, addSerializableClass, addSerializableClass, copy, createMapper, fromString, fromString, toExposedString, toString, toString, toString, toStringpublic craterdog.core.Iterator<E> createIterator()
public int getSize()
public E getElement(int index)
CollectiongetElement in class Collection<E>index - The index of the element to be returned.public int getIndex(E element)
CollectiongetIndex in class Collection<E>element - The element to be checked for in the collection.public Collection<E> getElements(int firstIndex, int lastIndex)
CollectiongetElements in class Collection<E>firstIndex - The index of the first element to be returned.lastIndex - the index of the last element to be returned.public void removeAll()
CollectionremoveAll in class Collection<E>Copyright © 2016 Crater Dog Technologies(TM). All rights reserved.