- All Superinterfaces:
java.lang.Iterable<E>
public interface ImmutableList<E>
extends java.lang.Iterable<E>
- Author:
- Dennis Cosgrove (http://www.cse.wustl.edu/~cosgroved/)
-
Method Summary
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Method Details
-
- Returns:
- the head value if it is present
- Throws:
java.util.NoSuchElementException - if empty
-
- Returns:
- the tail if it is present
- Throws:
java.util.NoSuchElementException - if empty
-
boolean isEmpty()
- Returns:
- true if empty, false otherwise