@Override public boolean equals(Object o) { if (o == this) return true; if (o == null) return false; if (o.getClass() != getClass()) { // final class, can do this return false; } ArrayNode other = (ArrayNode) o; if (_children == null || _children.size() == 0) { return other.size() == 0; } return other._sameChildren(_children); }
@Override public boolean equals(Object o) { if (o == this) return true; if (o == null) return false; if (o.getClass() != getClass()) { // final class, can do this return false; } ArrayNode other = (ArrayNode) o; if (_children == null || _children.size() == 0) { return other.size() == 0; } return other._sameChildren(_children); }
@Override public boolean equals(Object o) { if (o == this) return true; if (o == null) return false; if (o.getClass() != getClass()) { // final class, can do this return false; } ArrayNode other = (ArrayNode) o; if (_children == null || _children.size() == 0) { return other.size() == 0; } return other._sameChildren(_children); }
@Override public boolean equals(Object o) { if (o == this) return true; if (o == null) return false; if (o.getClass() != getClass()) { // final class, can do this return false; } ArrayNode other = (ArrayNode) o; if (_children == null || _children.size() == 0) { return other.size() == 0; } return other._sameChildren(_children); }
@Override public boolean equals(Object o) { if (o == this) return true; if (o == null) return false; if (o.getClass() != getClass()) { // final class, can do this return false; } ArrayNode other = (ArrayNode) o; if (_children == null || _children.size() == 0) { return other.size() == 0; } return other._sameChildren(_children); }