Пример #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;
 }