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

        TransactionType that = (TransactionType) o;

        if (amount != that.amount) return false;
        if (date != null ? !date.equals(that.date) : that.date != null) return false;
        if (securityId != null ? !securityId.equals(that.securityId) : that.securityId != null) return false;
        if (type != that.type) return false;

        return true;
    }