@Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Wallet wallet = (Wallet) o;

        if (Float.compare(wallet.cashAmount, cashAmount) != 0) return false;
        if (id != wallet.id) return false;
        if (userId != wallet.userId) return false;
        if (currency != null ? !currency.equals(wallet.currency) : wallet.currency != null) return false;

        return true;
    }