1 19 20 package jxl.biff; 21 22 import common.Logger; 23 24 29 public final class IndexMapping 30 { 31 34 private static Logger logger = Logger.getLogger(IndexMapping.class); 35 36 39 private int[] newIndices; 40 41 46 IndexMapping(int size) 47 { 48 newIndices = new int[size]; 49 } 50 51 56 void setMapping(int oldIndex, int newIndex) 57 { 58 newIndices[oldIndex] = newIndex; 59 } 60 61 66 public int getNewIndex(int oldIndex) 67 { 68 return newIndices[oldIndex]; 69 } 70 } 71 | Popular Tags |