package jetbrains.mps.baseLanguage.collections.unittest.generics_test;

/*Generated by MPS */


/*package*/ class IntegerSequence extends MySequence<Integer> {
  /*package*/ int myCount = -1;
  /*package*/ IntegerSequence() {
  }
  @Override
  /*package*/ Integer getNext() {
    if (this.myCount < 5) {
      this.myCount = this.myCount + 1;
      return this.myCount;
    }
    return null;
  }
}
