public final class Iterables extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
getLast(Iterable<T> iterable)
Returns the last element of
iterable. |
public static <T> T getLast(Iterable<T> iterable)
iterable.T - underlying type being iteratediterable - type of iterableiterableNoSuchElementException - if the iterable is empty