File tree Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Original file line number Diff line number Diff line change 1717 * This implementation is immutable and thread-safe, no lock is necessary.
1818 */
1919public class Sqids {
20- private static final int MIN_ALPHABET_LENGTH = 3 ;
21- private static final int MIN_LENGTH_LIMIT = 255 ;
22- private static final int MIN_BLOCK_LIST_WORD_LENGTH = 3 ;
20+ /**
21+ * The minimum allowable length of the alphabet used for encoding and
22+ * decoding Sqids.
23+ */
24+ public static final int MIN_ALPHABET_LENGTH = 3 ;
25+
26+ /**
27+ * The maximum allowable minimum length of an encoded Sqid.
28+ */
29+ public static final int MIN_LENGTH_LIMIT = 255 ;
30+
31+ /**
32+ * The minimum length of blocked words in the block list. Any words shorter
33+ * than the minimum are ignored.
34+ */
35+ public static final int MIN_BLOCK_LIST_WORD_LENGTH = 3 ;
2336
2437 private final String alphabet ;
2538 private final int alphabetLength ;
You can’t perform that action at this time.
0 commit comments