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() |
E[] |
toArray()
This method returns an array containing the elements in the sequence.
|
void |
toArray(E[] array)
Deprecated.
|
forEach, spliteratorboolean isEmpty()
int getNumberOfElements()
E[] toArray()
@Deprecated 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.