first commit
This commit is contained in:
21
hrmsEjb/jxl/biff/IndexMapping.java
Normal file
21
hrmsEjb/jxl/biff/IndexMapping.java
Normal file
@@ -0,0 +1,21 @@
|
||||
package jxl.biff;
|
||||
|
||||
import common.Logger;
|
||||
|
||||
public final class IndexMapping {
|
||||
private static Logger logger = Logger.getLogger(IndexMapping.class);
|
||||
|
||||
private int[] newIndices;
|
||||
|
||||
IndexMapping(int size) {
|
||||
this.newIndices = new int[size];
|
||||
}
|
||||
|
||||
void setMapping(int oldIndex, int newIndex) {
|
||||
this.newIndices[oldIndex] = newIndex;
|
||||
}
|
||||
|
||||
public int getNewIndex(int oldIndex) {
|
||||
return this.newIndices[oldIndex];
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user