public boolean isEquivalent(Transaction transaction){
  return mId.equals(transaction.mId);
}

public boolean isEquivalent ( Transaction transaction ) { return mId . equals ( transaction . mId ) ; }
used to determine whether a transaction is equivalent to this instance .
