public boolean isEquals(Gold one, Gold two) { return one.getLength() * one.getUnit() == two.getLength() * two.getUnit(); }