@Test public void testCaseInsensitivity() { int codesAmount = 500000; Set<String> codes = new HashSet<>(codesAmount); for (int i = 0; i < codesAmount; i++) { assertTrue(codes.add(LongEncoding.encode(i).toLowerCase())); } }
public static String encode(long num) { return encode(num,BASE_SYMBOLS); }
LongEncoding { public static String encode(long num) { return encode(num,BASE_SYMBOLS); } }
LongEncoding { public static String encode(long num) { return encode(num,BASE_SYMBOLS); }  }
LongEncoding { public static String encode(long num) { return encode(num,BASE_SYMBOLS); }  static long decode(String s); static String encode(long num); static long decode(String s, String symbols); static String encode(long num, String symbols); }
LongEncoding { public static String encode(long num) { return encode(num,BASE_SYMBOLS); }  static long decode(String s); static String encode(long num); static long decode(String s, String symbols); static String encode(long num, String symbols);  }