|
Jive Forums API (5.5.20.2-oracle) Developer Javadocs | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jivesoftware.util.CollectionUtils
public class CollectionUtils
Utilities to be used with java collection objects.
Nested Class Summary | |
---|---|
static interface |
CollectionUtils.ListItemTransformer
Collection modifying functor. |
Method Summary | |
---|---|
static void |
setNewIndex(java.util.List list,
java.lang.Object o,
int newIndex)
Can be used to change the location of an item in a list. |
static void |
setNewIndex(java.util.List list,
java.lang.Object listItem,
int newIndex,
CollectionUtils.ListItemTransformer t)
Exactly like setNewIndex without the transformer param, except this one will apply the transformer to every object that is adjusted in the list. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void setNewIndex(java.util.List list, java.lang.Object o, int newIndex)
list
- list to reorder an itemo
- the item to reordernewIndex
- the new position the item will be at in the listpublic static void setNewIndex(java.util.List list, java.lang.Object listItem, int newIndex, CollectionUtils.ListItemTransformer t)
list
- list to reorder an itemlistItem
- the item to reordert
- transformer to be applied to every item that is adjusted in the listnewIndex
- the new position the item will be at in the list
|
Jive Forums Project Page | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |