int (int hash) { if (hash == DurableIntToMultiIntMap.NO_VALUE) { //DurableIntToMultiIntMap doesn't allow 0 keys/values, hence replace 0 key with just anything !=0. // Key (=hash) doesn't identify value uniquely anyway, hence this replacement just adds another // collision -- basically, we replaced original Key.hash with our own hash, which avoids 0 at // the cost of slightly higher collision chances return -1;// anything !=0 will do } return hash; }