/** * Pushes a double 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 double value) { v8.checkThread(); checkReleased(); v8.addArrayDoubleItem(v8.getV8RuntimePtr(), getHandle(), value); return this; }
} else { if (value instanceof Double) { 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()); } else if (value instanceof Number) { v8.addArrayDoubleItem(v8.getV8RuntimePtr(), getHandle(), ((Number) value).doubleValue()); } else if (value instanceof Boolean) { v8.addArrayBooleanItem(v8.getV8RuntimePtr(), getHandle(), (Boolean) value);
/** * Pushes a double 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 double value) { v8.checkThread(); checkReleased(); v8.addArrayDoubleItem(v8.getV8RuntimePtr(), getHandle(), value); return this; }
} else { if (value instanceof Double) { 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()); } else if (value instanceof Number) { v8.addArrayDoubleItem(v8.getV8RuntimePtr(), getHandle(), ((Number) value).doubleValue()); } else if (value instanceof Boolean) { v8.addArrayBooleanItem(v8.getV8RuntimePtr(), getHandle(), (Boolean) value);
/** * Pushes a double 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 double value) { v8.checkThread(); checkReleased(); v8.addArrayDoubleItem(v8.getV8RuntimePtr(), getHandle(), value); return this; }
/** * Pushes a double 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 double value) { v8.checkThread(); checkReleased(); v8.addArrayDoubleItem(v8.getV8RuntimePtr(), getHandle(), value); return this; }