Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,19 @@ public int getIndex(long hashcode, int order) {
public int[] getIndices(long hashcode, int... indices) {
int[] ret = new int[indices.length];
for (int i=0; i<ret.length; i++)
ret[i] = getIndex(hashcode, indices[i]);
return ret;
}

/**
* Retrieves an array of the indices.
* @param hashcode
* @param nindices
* @return
*/
public int[] getIndices(long hashcode, int nindices) {
int[] ret = new int[nindices];
for (int i=0; i<nindices; i++)
ret[i] = getIndex(hashcode, i);
return ret;
}
Expand Down
Loading