/** * Compares this with object, after it has been wrapped by * {@link EwJson#wrap(Object)}. */ @Override public boolean equals(Object object) { if (super.equals(object)) return true; final Object wrapped = EwJson.wrap(object); if (this == wrapped) return true; if (EwJson.isNull(wrapped)) return false; if (wrapped instanceof EwJsonCollection) return EwJson.equals(this, (EwJsonCollection) wrapped); return false; }
/** * Compares this with object, after it has been wrapped by * {@link EwJson#wrap(Object)}. */ @Override public boolean equals(Object object) { if (super.equals(object)) return true; final Object wrapped = EwJson.wrap(object); if (this == wrapped) return true; if (EwJson.isNull(wrapped)) return false; if (wrapped instanceof EwJsonCollection) return EwJson.equals(this, (EwJsonCollection) wrapped); return false; }