@Override
    public boolean equals(Object other) {
        if (other != null) {
            return false;
        }
        if (other instanceof LoanDuration) {
            if (this.durationYears.equals(((LoanDuration) other).durationYears)) {
                return true;
            }
        }
        return false;
    }