示例#1
0
 public static DataProxy newFloatArray(String name, float[] val, int off, int len) {
   DataProxy d = new DataProxy(name, off, len);
   d.curFloatAry = val;
   d.type = PrimitiveOrString.FLOAT;
   return d;
 }
示例#2
0
 public static DataProxy newIntArray(String name, int[] val, int off, int len) {
   DataProxy d = new DataProxy(name, off, len);
   d.curIntAry = val;
   d.type = PrimitiveOrString.INT;
   return d;
 }
示例#3
0
 public static DataProxy newCharArray(String name, char[] val, int off, int len) {
   DataProxy d = new DataProxy(name, off, len);
   d.curCharAry = val;
   d.type = PrimitiveOrString.CHAR;
   return d;
 }
示例#4
0
 public static DataProxy newDoubleArray(String name, double[] val, int off, int len) {
   DataProxy d = new DataProxy(name, off, len);
   d.curDoubleAry = val;
   d.type = PrimitiveOrString.DOUBLE;
   return d;
 }
示例#5
0
 public static DataProxy newBooleanArray(String name, boolean[] val, int off, int len) {
   DataProxy d = new DataProxy(name, off, len);
   d.curBoolAry = val;
   d.type = PrimitiveOrString.BOOLEAN;
   return d;
 }
示例#6
0
 public static DataProxy newByteArray(String name, byte[] val, int off, int len) {
   DataProxy d = new DataProxy(name, off, len);
   d.curByteAry = val;
   d.type = PrimitiveOrString.BYTE;
   return d;
 }
示例#7
0
 public static DataProxy newShort(String name, short val) {
   DataProxy d = new DataProxy(name);
   d.curShort = val;
   d.type = PrimitiveOrString.SHORT;
   return d;
 }
示例#8
0
 public static DataProxy newByte(String name, byte val) {
   DataProxy d = new DataProxy(name);
   d.curByte = val;
   d.type = PrimitiveOrString.BYTE;
   return d;
 }
示例#9
0
 public static DataProxy newInt(String name, int val) {
   DataProxy d = new DataProxy(name);
   d.curInt = val;
   d.type = PrimitiveOrString.INT;
   return d;
 }
示例#10
0
 public static DataProxy newLong(String name, long val) {
   DataProxy d = new DataProxy(name);
   d.curLong = val;
   d.type = PrimitiveOrString.LONG;
   return d;
 }
示例#11
0
 public static DataProxy newFloat(String name, float val) {
   DataProxy d = new DataProxy(name);
   d.curFloat = val;
   d.type = PrimitiveOrString.FLOAT;
   return d;
 }
示例#12
0
 public static DataProxy newDouble(String name, double val) {
   DataProxy d = new DataProxy(name);
   d.curDouble = val;
   d.type = PrimitiveOrString.DOUBLE;
   return d;
 }
示例#13
0
 public static DataProxy newChar(String name, char val) {
   DataProxy d = new DataProxy(name);
   d.curChar = val;
   d.type = PrimitiveOrString.CHAR;
   return d;
 }
示例#14
0
 public static DataProxy newShortArray(String name, short[] val, int off, int len) {
   DataProxy d = new DataProxy(name, off, len);
   d.curShortAry = val;
   d.type = PrimitiveOrString.SHORT;
   return d;
 }
示例#15
0
 public static DataProxy newString(String name, String val) {
   DataProxy d = new DataProxy(name);
   d.curString = val;
   d.type = PrimitiveOrString.STRING;
   return d;
 }
示例#16
0
 public static DataProxy newStringArray(String name, String[] val, int off, int len) {
   DataProxy d = new DataProxy(name, off, len);
   d.curStringAry = val;
   d.type = PrimitiveOrString.STRING;
   return d;
 }
示例#17
0
 public static DataProxy newBoolean(String name, boolean val) {
   DataProxy d = new DataProxy(name);
   d.curBool = val;
   d.type = PrimitiveOrString.BOOLEAN;
   return d;
 }