java.lang.Object | |
↳ | com.atlassian.jira.util.CollectionReorderer<T> |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
If moving more than one object at the same time please use
moveToPosition(java.util.List, java.util.Map)
Moves an object at initialPosition index in the objects list to the targetPosition index
| |||||||||||
Moves multiple objects in the objects list to given destination indexes
| |||||||||||
Move the 'toMove' to the position after the 'target'.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object |
If moving more than one object at the same time please use moveToPosition(java.util.List, java.util.Map)
objects | the list of objects to modify |
---|---|
initialPosition | the current index of the object that should be moved in the objects list |
targetPosition | the destination index |
Moves multiple objects in the objects list to given destination indexes
objects | the list of objects |
---|---|
positionToObjects | a naturally sorted map with destination indexes as keys and the objects to move as values |
Move the 'toMove' to the position after the 'target'. To insert to the head of the list set afterThis to null
objects | list of objects to look up and order in |
---|---|
toMove | the object to move |
target | the position to move to |