public class FloatPermutationHolder extends PermutationHolder
| 构造器和说明 |
|---|
FloatPermutationHolder(float[] arr) |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
compare(int i,
int j)
比较两个位置元素大小
|
int |
length() |
void |
reverse(int fromIndex,
int toIndex)
颠倒[fromIndex,toIndex)范围内的数据
|
void |
swap(int i,
int j)
交换指定位置的两个元素
|
nextPermutation, prePermutationpublic int length()
length 在类中 PermutationHolderpublic int compare(int i,
int j)
PermutationHoldercompare 在类中 PermutationHolderpublic void swap(int i,
int j)
PermutationHolderswap 在类中 PermutationHolderpublic void reverse(int fromIndex,
int toIndex)
PermutationHolderreverse 在类中 PermutationHolder