CollectionUtils

Static helper class for use dealing with Collections.

Members

Static functions

asSet
Set!(E) asSet(E[] elements)
Undocumented in source. Be warned that the author may not have intended to support it.
isEmpty
bool isEmpty(Collection!(T) c)

Returns {@code true} if the specified {@code Collection} is {@code null} or {@link Collection#isEmpty empty}, {@code false} otherwise.

isEmpty
bool isEmpty(Map!(K, V) m)

Returns {@code true} if the specified {@code Map} is {@code null} or {@link Map#isEmpty empty}, {@code false} otherwise.

size
int size(Collection!T c)

Returns the size of the specified collection or {@code 0} if the collection is {@code null}.

size
int size(Map!(K, V) m)

Returns the size of the specified map or {@code 0} if the map is {@code null}.

Meta