/** * Returns <code>true</code> only if the other object is an instance of * the same class and with the same elements. */ @Override public boolean equals(Object obj) { return obj != null && getClass() == obj.getClass() && equalElements(getClass().cast(obj)); }
/** * Returns <code>true</code> only if the other object is an instance of * the same class and with the same elements. */ @Override public boolean equals(Object obj) { return obj != null && getClass() == obj.getClass() && equalElements(getClass().cast(obj)); }