prev method

Implementation

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