E - The type of element that makes up the sequence.public interface Sequential<E> extends Iterable<E>
| Modifier and Type | Method and Description |
|---|---|
int |
getNumberOfElements()
This method returns the number of elements in the sequence.
|
boolean |
isEmpty()
This method checks to see if the sequence is empty.
|
Iterator<E> |
iterator() |
void |
toArray(E[] array)
This method fills the specified array with as many elements from the sequence as
will fit in the array.
|
forEach, spliteratorboolean isEmpty()
int getNumberOfElements()
void toArray(E[] array)
array - An array to be used to hold the elements of the sequence.Copyright © 2014 Crater Dog Technologies(TM). All rights reserved.