| Added Methods |
Stream<T> asStream(T[])
|
Returns a Stream equivalent to the given array |
Stream<T> asStream(Iterator<T>)
|
Returns a Stream equivalent to the given iterator |
String join(Object[], String)
|
Joins an array of values into a single string, using the given separator. |
Collection<T> orEmpty(Collection<T>)
|
Returns an empty list if the given list is null |
List<T> orEmpty(List<T>)
|
Returns an empty list if the given list is null |
(Map<K, V>) orEmpty(Map<K, V>)
|
Returns an empty map if the given map is null |
Set<T> orEmpty(Set<T>)
|
Returns an empty set if the given set is null |
| Changed Methods |
boolean hasOnlyOneElement(Collection<?>)
|
Change in signature from Iterable<?> to Collection<?>.
|
Returns true if the collection has only one element, handling nulls. |
String join(Iterable<?>, String)
|
Documentation changed from old to new. |
Joins a collection of values into a single string, using the given separator. |
int size(Collection<?>)
|
Change in signature from Iterable<?> to Collection<?>.
|
Returns the collection size, handling nulls (returns 0 if the collection is null) |