resolve static method

LexoRankBucket resolve(
  1. int bucketId
)

Implementation

static LexoRankBucket resolve(int bucketId) {
  final var1 = LexoRankBucket.VALUES;
  final var2 = var1.length;
  for (var var3 = 0; var3 < var2; ++var3) {
    final bucket = var1[var3];
    if (bucket.equals(LexoRankBucket.from(bucketId.toString()))) {
      return bucket;
    }
  }
  throw AssertionError('No bucket found with id ' + bucketId.toString());
}