示例#1
0
 private final int convertIndex(PrimitiveOrString getType, int index) {
   checkArray(getType);
   if (index > arrayLen) {
     throw new ArrayIndexOutOfBoundsException(index + " off=" + arrayOff + ", len=" + arrayLen);
   }
   return arrayOff + index;
 }
示例#2
0
 public byte[] getByteArray() {
   checkArray(PrimitiveOrString.BYTE);
   return curByteAry;
 }
示例#3
0
 public char[] getCharArray() {
   checkArray(PrimitiveOrString.CHAR);
   return curCharAry;
 }
示例#4
0
 public boolean[] getBooleanArray() {
   checkArray(PrimitiveOrString.BOOLEAN);
   return curBoolAry;
 }
示例#5
0
 public String[] getStringArray() {
   checkArray(PrimitiveOrString.STRING);
   return curStringAry;
 }
示例#6
0
 public double[] getDoubleArray() {
   checkArray(PrimitiveOrString.DOUBLE);
   return curDoubleAry;
 }
示例#7
0
 public float[] getFloatArray() {
   checkArray(PrimitiveOrString.FLOAT);
   return curFloatAry;
 }
示例#8
0
 public long[] getLongArray() {
   checkArray(PrimitiveOrString.LONG);
   return curLongAry;
 }
示例#9
0
 public int[] getIntArray() {
   checkArray(PrimitiveOrString.INT);
   return curIntAry;
 }
示例#10
0
 public short[] getShortArray() {
   checkArray(PrimitiveOrString.SHORT);
   return curShortAry;
 }