Skip to content

Commit

Permalink
Make static constants public (#7)
Browse files Browse the repository at this point in the history
Make static constants public.
  • Loading branch information
robhanlon22 authored Nov 29, 2023
1 parent 73c44eb commit 4893e1b
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions src/main/java/org/sqids/Sqids.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,22 @@
* This implementation is immutable and thread-safe, no lock is necessary.
*/
public class Sqids {
private static final int MIN_ALPHABET_LENGTH = 3;
private static final int MIN_LENGTH_LIMIT = 255;
private static final int MIN_BLOCK_LIST_WORD_LENGTH = 3;
/**
* The minimum allowable length of the alphabet used for encoding and
* decoding Sqids.
*/
public static final int MIN_ALPHABET_LENGTH = 3;

/**
* The maximum allowable minimum length of an encoded Sqid.
*/
public static final int MIN_LENGTH_LIMIT = 255;

/**
* The minimum length of blocked words in the block list. Any words shorter
* than the minimum are ignored.
*/
public static final int MIN_BLOCK_LIST_WORD_LENGTH = 3;

private final String alphabet;
private final int alphabetLength;
Expand Down

0 comments on commit 4893e1b

Please sign in to comment.