/** * Pushes an integer value to the next available spot in the Array. In * particular, this[length] = value; * * @param value The value to push to the array. * * @return The receiver. */ public V8Array push(final int value) { v8.checkThread(); checkReleased(); v8.addArrayIntItem(v8.getV8RuntimePtr(), getHandle(), value); return this; }
v8.addArrayDoubleItem(v8.getV8RuntimePtr(), getHandle(), (Double) value); } else if (value instanceof Integer) { v8.addArrayIntItem(v8.getV8RuntimePtr(), getHandle(), (Integer) value); } else if (value instanceof Float) { v8.addArrayDoubleItem(v8.getV8RuntimePtr(), getHandle(), ((Float) value).doubleValue());
/** * Pushes an integer value to the next available spot in the Array. In * particular, this[length] = value; * * @param value The value to push to the array. * * @return The receiver. */ public V8Array push(final int value) { v8.checkThread(); checkReleased(); v8.addArrayIntItem(v8.getV8RuntimePtr(), getHandle(), value); return this; }
v8.addArrayDoubleItem(v8.getV8RuntimePtr(), getHandle(), (Double) value); } else if (value instanceof Integer) { v8.addArrayIntItem(v8.getV8RuntimePtr(), getHandle(), (Integer) value); } else if (value instanceof Float) { v8.addArrayDoubleItem(v8.getV8RuntimePtr(), getHandle(), ((Float) value).doubleValue());
/** * Pushes an integer value to the next available spot in the Array. In * particular, this[length] = value; * * @param value The value to push to the array. * * @return The receiver. */ public V8Array push(final int value) { v8.checkThread(); checkReleased(); v8.addArrayIntItem(v8.getV8RuntimePtr(), getHandle(), value); return this; }
/** * Pushes an integer value to the next available spot in the Array. In * particular, this[length] = value; * * @param value The value to push to the array. * * @return The receiver. */ public V8Array push(final int value) { v8.checkThread(); checkReleased(); v8.addArrayIntItem(v8.getV8RuntimePtr(), getHandle(), value); return this; }