from static method

LexoRankBucket from(
  1. String str
)

Implementation

static LexoRankBucket from(String str) {
  final val = LexoInteger.parse(str, LexoRank.NUMERAL_SYSTEM);
  final var2 = LexoRankBucket.VALUES;
  final var3 = var2.length;
  for (var var4 = 0; var4 < var3; ++var4) {
    final bucket = var2[var4];
    if (bucket.value.sign == val.sign) {
      return bucket;
    }
  }

  throw AssertionError('Unknown bucket: ' + str);
}