Class UlidStruct
- java.lang.Object
-
- com.github.f4b6a3.ulid.util.internal.UlidStruct
-
public final class UlidStruct extends Object
This class represents the structure of a ULID. It is for internal use and test cases in this library.
-
-
Field Summary
Fields Modifier and Type Field Description static char[]BASE32_CHARSstatic long[]BASE32_VALUESprotected static longHALF_RANDOM_COMPONENTlongrandom1longrandom2longtimeprotected static longTIMESTAMP_COMPONENT
-
Constructor Summary
Constructors Constructor Description UlidStruct(long time, long random1, long random2)UlidStruct(String string)UlidStruct(UUID uuid)
-
-
-
Field Detail
-
time
public final long time
-
random1
public final long random1
-
random2
public final long random2
-
TIMESTAMP_COMPONENT
protected static final long TIMESTAMP_COMPONENT
- See Also:
- Constant Field Values
-
HALF_RANDOM_COMPONENT
protected static final long HALF_RANDOM_COMPONENT
- See Also:
- Constant Field Values
-
BASE32_CHARS
public static final char[] BASE32_CHARS
-
BASE32_VALUES
public static final long[] BASE32_VALUES
-
-