add method

SimpleToken add(
  1. SimpleToken token
)

used to add two instances of the same token with different sets of currency:price data.

Implementation

SimpleToken add(SimpleToken token) {
  if (this.contractAddress == token.contractAddress) {
    this.data.addAll(token.data);
  }
  return this; //not add-able
}