/guava/guava/src/com/google/common/collect/Iterators.java
} }return current;
return current; } }
} @ParametricNullness public static <T extends @Nullable Object> T getLast(Iterator<T> iterator) { while (true) { T current = iterator.next(); if (!iterator.hasNext()) { <extra_id_0> } @ParametricNullness public static <T extends @Nullable Object> T getLast( Iterator<? extends T> iterator, @ParametricNullness T defaultValue) { return iterator.hasNext() ? getLast(iterator) : defaultValue; }