Class BulkDataUtility
java.lang.Object
org.pentaho.reporting.libraries.base.util.BulkDataUtility
A utility class to support reordering operations of arrays.
- Author:
- Thomas Morgner
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
Pushes the selected elements down.static void
pushDownSingleValue
(Object[] data, Object selection) Pushes the selected element down.static void
Pushes the selected elements up.static void
pushUpSingleValue
(Object[] data, Object selection) Pushes up the selected element.
-
Method Details
-
pushUp
Pushes the selected elements up. The elements are given in the data-array, while a selector on whether they should be pushed up is given in the selection array. The operation modifies the data-array.- Parameters:
data
- the array holding the data-objects.selection
- the selection of which elements should be pushed up.
-
pushDown
Pushes the selected elements down. The elements are given in the data-array, while a selector on whether they should be pushed down is given in the selection array. The operation modifies the data-array.- Parameters:
data
- the array holding the data-objects.selection
- the selection of which elements should be pushed down.
-
pushUpSingleValue
Pushes up the selected element. The element is compared via reference-equality, soequals()
will not be called. It is assumed that the selected object is part of the data-collection. The operation modifies the data-array.- Parameters:
data
- the array holding the data-objects.selection
- the selectioned object that be pushed up.
-
pushDownSingleValue
Pushes the selected element down. The element is compared via reference-equality, soequals()
will not be called. It is assumed that the selected object is part of the data-collection. The operation modifies the data-array.- Parameters:
data
- the array holding the data-objects.selection
- the selectioned object that be pushed down.
-