/** * Returns <code>true</code> if <code>other</code> is a {@link JSONObject} * wrapping the same underlying object. */ @Override public boolean equals(Object other) { if (!(other instanceof JSONObject)) { return false; } return jsObject.equals(((JSONObject) other).jsObject); }
/** * Returns <code>true</code> if <code>other</code> is a {@link JSONArray} * wrapping the same underlying object. */ @Override public boolean equals(Object other) { if (!(other instanceof JSONArray)) { return false; } return jsArray.equals(((JSONArray) other).jsArray); }
public boolean equals(Object obj) { return jso.equals(obj); }
/** * Returns <code>true</code> if <code>other</code> is a {@link JSONObject} * wrapping the same underlying object. */ @Override public boolean equals(Object other) { if (!(other instanceof JSONObject)) { return false; } return jsObject.equals(((JSONObject) other).jsObject); }
/** * Returns <code>true</code> if <code>other</code> is a {@link JSONArray} * wrapping the same underlying object. */ @Override public boolean equals(Object other) { if (!(other instanceof JSONArray)) { return false; } return jsArray.equals(((JSONArray) other).jsArray); }
public boolean isEquals(BucketsOverlay other) { if (super.equals(other)) return true; final JsArrayString keys = getKeysNative(); final JsArrayString otherKeys = other.getKeysNative(); if (arraysEquals(keys, otherKeys)) { for (int i = 0; i < keys.length(); i++) { if (!arraysEquals(getNative(keys.get(i)), other.getNative(otherKeys.get(i)))) { return false; } } return true; } return false; }
public boolean isEquals(BucketsOverlay other) { if (super.equals(other)) return true; final JsArrayString keys = getKeysNative(); final JsArrayString otherKeys = other.getKeysNative(); if (arraysEquals(keys, otherKeys)) { for (int i = 0; i < keys.length(); i++) { if (!arraysEquals(getNative(keys.get(i)), other.getNative(otherKeys.get(i)))) { return false; } } return true; } return false; }