next method

Implementation

LexoRankBucket next() {
  if (equals(LexoRankBucket.BUCKET_0)) {
    return LexoRankBucket.BUCKET_1;
  }
  if (equals(LexoRankBucket.BUCKET_1)) {
    return LexoRankBucket.BUCKET_2;
  }
  return equals(LexoRankBucket.BUCKET_2)
      ? LexoRankBucket.BUCKET_0
      : LexoRankBucket.BUCKET_2;
}