Changed Methods |
T getFirst(Iterable<?, extends, T>, T)
|
Change in signature from (Iterable<T>, T ) to (Iterable<? extends T>, T ).
|
Returns the first element in {@code iterable} or {@code defaultValue} if
the iterable is empty. |
T find(Iterable<?, extends, T>, Predicate<?, super, T>, T)
|
Change in signature from (Iterable<T>, Predicate<? super T>, T ) to (Iterable<? extends T>, Predicate<? super T>, T ).
|
Returns the first element in {@code iterable} that satisfies the given
predicate, or {@code defaultValue} if none found. |
T get(Iterable<?, extends, T>, int, T)
|
Change in signature from (Iterable<T>, int, T ) to (Iterable<? extends T>, int, T ).
|
Returns the element at the specified position in an iterable or a default
value otherwise. |
T getLast(Iterable<?, extends, T>, T)
|
Change in signature from (Iterable<T>, T ) to (Iterable<? extends T>, T ).
|
Returns the last element of {@code iterable} or {@code defaultValue} if
the iterable is empty. |
T getOnlyElement(Iterable<?, extends, T>, T)
|
Change in signature from (Iterable<T>, T ) to (Iterable<? extends T>, T ).
|
Returns the single element contained in {@code iterable}, or {@code
defaultValue} if the iterable is empty. |