edu.rice.cs.plt.iter
Interface OptimizedLastIterable<T>

All Superinterfaces:
java.lang.Iterable<T>
All Known Implementing Classes:
BinaryMappedIterable, CartesianIterable, CollapsedIterable, ComposedIterable, DiagonalCartesianIterable, ImmutableIterable, MappedIterable, PermutationIterable, SingletonIterable, SkipFirstIterable, SnapshotIterable

public interface OptimizedLastIterable<T>
extends java.lang.Iterable<T>

An iterable that supports a last operation that executes more quickly than traversing the entire contents of the list.


Method Summary
 T last()
          Get the last element of the list.
 
Methods inherited from interface java.lang.Iterable
iterator
 

Method Detail

last

T last()
Get the last element of the list. Assumed to execute more quickly than a traversal over all elements.