package io.tetrapod.core.storage;

public class ContractKey {
   private final int contractId;
   private final int subContractId;

   public ContractKey(int contractId, int subContractId) {
      this.contractId = contractId;
      this.subContractId = subContractId;
   }

   public int getContractId() {
      return contractId;
   }

   public int getSubContractId() {
      return subContractId;
   }
}

@@ -398,11 +398,485 @@
 Id;%0A   %7D
+%0A%0A   @Override%0A   public boolean equals(Object o) %7B%0A      if (this == o)%0A         return true;%0A      if (o == null %7C%7C getClass() != o.getClass())%0A         return false;%0A%0A      ContractKey that = (ContractKey) o;%0A%0A      if (contractId != that.contractId)%0A         return false;%0A      return subContractId == that.subContractId;%0A%0A   %7D%0A%0A   @Override%0A   public int hashCode() %7B%0A      int result = contractId;%0A      result = 31 * result + subContractId;%0A      return result;%0A   %7D
 %0A%7D%0A

add equals/hashcode to ContractKey