@Override public boolean equals(Object obj) { if (this == obj) { return true; } else if (obj instanceof StoreResultNode) { return value.equals(((StoreResultNode) obj).value); } else { return super.equals(obj); } }
/** * Compares two objects for equality. * * Two multivector components are equal if their class is the same and both their name and blade index are equal * as well. * * @param o The other object. * @return True if and only if the other object is equal to this object. */ @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; if (!super.equals(o)) return false; MultivectorComponent that = (MultivectorComponent) o; if (bladeIndex != that.bladeIndex) return false; return true; }