@Override public final boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof BsonJavaScriptWithScope)) { return false; } BsonJavaScriptWithScope other = (BsonJavaScriptWithScope) obj; if (!this.getJavaScript().equals(other.getJavaScript())) { return false; } return this.getScope().equals(other.getScope()); }