| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static <T extends Comparable | Returns: a sorted copy of the collectionthe collection to copy and sort elts)Copy and sort a collection. |
| public static < the element type T extends Comparable | sortIfNotEmpty(final List<T>
the list list)Sort a collection if it is not empty (to prevent |
| public static < the element type T> void | sortIfNotEmpty(final List<T>
the list list, final Comparator<? super T> the comparator comparator)Sort a collection if it is not empty (to prevent |
| CollectionUtils | back to summary |
|---|---|
| private CollectionUtils() Class can't be constructed. | |
| sortCopy | back to summary |
|---|---|
| public static <T extends Comparable Copy and sort a collection.
| |
| sortIfNotEmpty | back to summary |
|---|---|
| public static <T extends Comparable Sort a collection if it is not empty (to prevent
| |
| sortIfNotEmpty | back to summary |
|---|---|
| public static <T> void sortIfNotEmpty(final List<T> list, final Comparator<? super T> comparator) Sort a collection if it is not empty (to prevent
| |