/guava/android/guava/src/com/google/common/collect/Iterables.java
return Iterators.getNext( defaultValue, iterator) ;
return Iterators.getNext ( iterator, defaultValue ) ;
if (iterable instanceof List) { List<? extends T> list = Lists.cast(iterable); return (position < list.size()) ? list.get(position) : defaultValue; } else { Iterator<? extends T> iterator = iterable.iterator(); Iterators.advance(iterator, position); <extra_id_0> } } @ParametricNullness public static <T extends @Nullable Object> T getFirst( Iterable<? extends T> iterable, @ParametricNullness T defaultValue) { return Iterators.getNext(iterable.iterator(), defaultValue);