Skip to content

Commit 4893e1b

Browse files
authored
Make static constants public (#7)
Make static constants public.
1 parent 73c44eb commit 4893e1b

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

src/main/java/org/sqids/Sqids.java

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,22 @@
1717
* This implementation is immutable and thread-safe, no lock is necessary.
1818
*/
1919
public 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;

0 commit comments

Comments
 (0)