CollectionTool
instead@Deprecated public class CollectionsTool extends CollectionTool
Constructor and Description |
---|
CollectionsTool()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
<E> boolean |
reverse(List<E> input)
Deprecated.
Reverse the order of the elements within a list, so that the last element is moved to the beginning of the list,
the next-to-last element to the second position, and so on.
|
<E extends Comparable<E>> |
sort(List<E> input)
Deprecated.
Sort the elements within a list according to their natural order.
|
disjunction, getArrayList, getBlockingQueue, getLinkedList, getMap, getOrderedMap, getOrderedSet, getPriorityQueue, getQueue, getSet, getSortedMap, getSortedSet, intersection, reverseModifiable, sortModifiable, union, unmodifiable, unmodifiable, unmodifiable, unmodifiable
configure, getComparable, getStringsDelimiter, getStringsTrim, internalSort, setStringsDelimiter, setStringsTrim, sort, sort, sort, sort, sort, sort, sort, sort, sort, sort, sort, sort, split
public <E> boolean reverse(List<E> input)
E
- the type of the elements in the listinput
- the list to reversetrue
if the list was successfully reversed, false
otherwisepublic <E extends Comparable<E>> boolean sort(List<E> input)
E
- the type of the elements in the listinput
- the list to sorttrue
if the list was successfully sorted, false
otherwiseCopyright © 2004–2021 XWiki. All rights reserved.