@Override public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof DriveLicense)) return false; DriveLicense that = (DriveLicense) o; if (amount != that.amount) return false; if (license != null ? !license.equals(that.license) : that.license != null) return false; if (user != null ? !user.equals(that.user) : that.user != null) return false; return true; }
@Override public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof DriveLicense)) return false; DriveLicense that = (DriveLicense) o; if (amount != that.amount) return false; if (license != null ? !license.equals(that.license) : that.license != null) return false; if (user != null ? !user.equals(that.user) : that.user != null) return false; return true; }
@Override public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof DriveLicense)) return false; DriveLicense that = (DriveLicense) o; if (amount != that.amount) return false; if (license != null ? !license.equals(that.license) : that.license != null) return false; if (user != null ? !user.equals(that.user) : that.user != null) return false; return true; }