public class CollectionUtils extends Object
| Constructor and Description |
|---|
CollectionUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
oneElt(Collection<T> collection)
Return an element from a collection.
|
static <T> boolean |
sameElts(Collection<T> left,
Collection<T> right)
Test for same elements, regardless of cardinality
|
public static <T> boolean sameElts(Collection<T> left, Collection<T> right)
public static <T> T oneElt(Collection<T> collection)
Licenced under the Apache License, Version 2.0