Package org.apache.druid.common.utils
Class IntArrayUtils
java.lang.Object
org.apache.druid.common.utils.IntArrayUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidinverse(int[] a) Inverses the values of the given array with their indexes.
-
Method Details
-
inverse
public static void inverse(int[] a) Inverses the values of the given array with their indexes. For example, the result for [2, 0, 1] is [1, 2, 0] because a[0]: 2 => a[2]: 0 a[1]: 0 => a[0]: 1 a[2]: 1 => a[1]: 2
-