protected long getHandle() { checkReleased(); return objectHandle; }
@Override public int hashCode() { v8.checkThread(); checkReleased(); return v8.identityHash(v8.getV8RuntimePtr(), getHandle()); }
protected long getHandle() { checkReleased(); return objectHandle; }
/** * Performs a JS === on the parameter and the receiver. * * @param that The Object to compare this object against. * @return Returns true iff this === that */ public boolean strictEquals(final Object that) { v8.checkThread(); checkReleased(); if (that == this) { return true; } if (that == null) { return false; } if (!(that instanceof V8Value)) { return false; } if (isUndefined() && ((V8Value) that).isUndefined()) { return true; } if (((V8Value) that).isUndefined()) { return false; } return v8.strictEquals(v8.getV8RuntimePtr(), getHandle(), ((V8Value) that).getHandle()); }
/** * Performs a JS == on the parameter and the receiver. * * @param that The Object to compare this object against. * @return Returns true iff this == that */ public boolean jsEquals(final Object that) { v8.checkThread(); checkReleased(); if (that == this) { return true; } if (that == null) { return false; } if (!(that instanceof V8Value)) { return false; } if (isUndefined() && ((V8Value) that).isUndefined()) { return true; } if (((V8Value) that).isUndefined()) { return false; } return v8.equals(v8.getV8RuntimePtr(), getHandle(), ((V8Value) that).getHandle()); }
@Override public int hashCode() { v8.checkThread(); checkReleased(); return v8.identityHash(v8.getV8RuntimePtr(), getHandle()); }
protected long getHandle() { checkReleased(); return objectHandle; }
protected long getHandle() { checkReleased(); return objectHandle; }
/** * Performs a JS === on the parameter and the receiver. * * @param that The Object to compare this object against. * @return Returns true iff this === that */ public boolean strictEquals(final Object that) { v8.checkThread(); checkReleased(); if (that == this) { return true; } if (that == null) { return false; } if (!(that instanceof V8Value)) { return false; } if (isUndefined() && ((V8Value) that).isUndefined()) { return true; } if (((V8Value) that).isUndefined()) { return false; } return v8.strictEquals(v8.getV8RuntimePtr(), getHandle(), ((V8Value) that).getHandle()); }
/** * Performs a JS == on the parameter and the receiver. * * @param that The Object to compare this object against. * @return Returns true iff this == that */ public boolean jsEquals(final Object that) { v8.checkThread(); checkReleased(); if (that == this) { return true; } if (that == null) { return false; } if (!(that instanceof V8Value)) { return false; } if (isUndefined() && ((V8Value) that).isUndefined()) { return true; } if (((V8Value) that).isUndefined()) { return false; } return v8.equals(v8.getV8RuntimePtr(), getHandle(), ((V8Value) that).getHandle()); }
@Override public int hashCode() { v8.checkThread(); checkReleased(); return v8.identityHash(v8.getV8RuntimePtr(), getHandle()); }
@Override public int hashCode() { v8.checkThread(); checkReleased(); return v8.identityHash(v8.getV8RuntimePtr(), getHandle()); }
/** * Performs a JS == on the parameter and the receiver. * * @param that The Object to compare this object against. * @return Returns true iff this == that */ public boolean jsEquals(final Object that) { v8.checkThread(); checkReleased(); if (that == this) { return true; } if (that == null) { return false; } if (!(that instanceof V8Value)) { return false; } if (isUndefined() && ((V8Value) that).isUndefined()) { return true; } if (((V8Value) that).isUndefined()) { return false; } return v8.equals(v8.getV8RuntimePtr(), getHandle(), ((V8Value) that).getHandle()); }
/** * Performs a JS === on the parameter and the receiver. * * @param that The Object to compare this object against. * @return Returns true iff this === that */ public boolean strictEquals(final Object that) { v8.checkThread(); checkReleased(); if (that == this) { return true; } if (that == null) { return false; } if (!(that instanceof V8Value)) { return false; } if (isUndefined() && ((V8Value) that).isUndefined()) { return true; } if (((V8Value) that).isUndefined()) { return false; } return v8.strictEquals(v8.getV8RuntimePtr(), getHandle(), ((V8Value) that).getHandle()); }
/** * Performs a JS == on the parameter and the receiver. * * @param that The Object to compare this object against. * @return Returns true iff this == that */ public boolean jsEquals(final Object that) { v8.checkThread(); checkReleased(); if (that == this) { return true; } if (that == null) { return false; } if (!(that instanceof V8Value)) { return false; } if (isUndefined() && ((V8Value) that).isUndefined()) { return true; } if (((V8Value) that).isUndefined()) { return false; } return v8.equals(v8.getV8RuntimePtr(), getHandle(), ((V8Value) that).getHandle()); }
/** * Performs a JS === on the parameter and the receiver. * * @param that The Object to compare this object against. * @return Returns true iff this === that */ public boolean strictEquals(final Object that) { v8.checkThread(); checkReleased(); if (that == this) { return true; } if (that == null) { return false; } if (!(that instanceof V8Value)) { return false; } if (isUndefined() && ((V8Value) that).isUndefined()) { return true; } if (((V8Value) that).isUndefined()) { return false; } return v8.strictEquals(v8.getV8RuntimePtr(), getHandle(), ((V8Value) that).getHandle()); }