boolean (SortedIntSet that) { int thatSize = that.size(); int thisSize = this.size(); if (thatSize > thisSize) return false; int thisIndex=0; for (int thatIndex = 0; thatIndex < thatSize; thatIndex++) { int thatValue = that.myData[thatIndex]; while (thisIndex < thisSize && this.myData[thisIndex] < thatValue) { thisIndex++; } if (thisIndex == thisSize || this.myData[thisIndex] > thatValue) return false; thisIndex++; } return true; }