/** * Create a new Array from the given values. * * @param args * the values * @return the new array */ public static final Array<Integer> fromInts(final int... args) { Array<Integer> a = JsArrayUtils.readOnlyJsArray(args).cast(); replaceArrayToString(a); return a; }
/** * Create a new Array from the given values. * * @param args * the values * @return the new array */ public static final Array<Integer> fromInts(final int... args) { Array<Integer> a = JsArrayUtils.readOnlyJsArray(args).cast(); replaceArrayToString(a); return a; }
/** * Create a new Array from the given values. * * @param args * the values * @return the new array */ public static final Array<Byte> fromBytes(final byte... args) { Array<Byte> a = JsArrayUtils.readOnlyJsArray(args).cast(); replaceArrayToString(a); return a; }
/** * Create a new Array from the given values. * * @param args * the values * @return the new array */ public static final Array<Short> fromShorts(final short... args) { Array<Short> a = JsArrayUtils.readOnlyJsArray(args).cast(); replaceArrayToString(a); return a; }
/** * Create a new Array from the given values. * * @param args * the values * @return the new array */ public static final Array<Byte> fromBytes(final byte... args) { Array<Byte> a = JsArrayUtils.readOnlyJsArray(args).cast(); replaceArrayToString(a); return a; }
/** * Create a new Array from the given values. * * @param args * the values * @return the new array */ public static final Array<Short> fromShorts(final short... args) { Array<Short> a = JsArrayUtils.readOnlyJsArray(args).cast(); replaceArrayToString(a); return a; }