JavaScript is disabled on your browser.
public final class CollectionUtils
extends Object
Some collection utilities that were not found in Collections2
Method Summary
All Methods Static Methods Concrete Methods
Composes a
List out of the
input.
Methods inherited from class java.lang.Object
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
Method Details
asList
Composes a
List out of the
input.
Recognizes arrays and
Iterables to perform its job. Otherwise
returns a single-value list containing the
input object.
Returns:
a List instance, never null
asListWOnull
Composes a
List out of the
input using
asList(Object).
Then clears out all the
nulls out of it.
Returns:
a List instance, containing no null references;
never returns null.