Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
B
- build() - Method in class io.hypersistence.tsid.TSID.Factory.Builder
-
Returns a build TSID factory.
- builder() - Static method in class io.hypersistence.tsid.TSID.Factory
-
Returns a builder object.
- Builder() - Constructor for class io.hypersistence.tsid.TSID.Factory.Builder
C
- compareTo(TSID) - Method in class io.hypersistence.tsid.TSID
-
Compares two TSIDs as unsigned 64-bit integers.
D
- decode(String, int) - Static method in class io.hypersistence.tsid.TSID
-
Converts a base-n encoded string to a TSID.
E
- encode(int) - Method in class io.hypersistence.tsid.TSID
-
Converts the TSID to a base-n encoded string.
- equals(Object) - Method in class io.hypersistence.tsid.TSID
-
Checks if some other TSID is equal to this one.
F
- Factory() - Constructor for class io.hypersistence.tsid.TSID.Factory
-
It builds a new factory.
- Factory(int) - Constructor for class io.hypersistence.tsid.TSID.Factory
-
It builds a new factory.
- fast() - Static method in class io.hypersistence.tsid.TSID
-
Returns a fast new TSID.
- format(String) - Method in class io.hypersistence.tsid.TSID
-
Converts the TSID to a string using a custom format.
- from(byte[]) - Static method in class io.hypersistence.tsid.TSID
-
Converts a byte array into a TSID.
- from(long) - Static method in class io.hypersistence.tsid.TSID
-
Converts a number into a TSID.
- from(String) - Static method in class io.hypersistence.tsid.TSID
-
Converts a canonical string into a TSID.
G
- generate() - Method in class io.hypersistence.tsid.TSID.Factory
-
Returns a TSID.
- getClock() - Method in class io.hypersistence.tsid.TSID.Factory.Builder
-
Gets the clock to be used in tests.
- getCustomEpoch() - Method in class io.hypersistence.tsid.TSID.Factory.Builder
-
Gets the custom epoch.
- getInstant() - Method in class io.hypersistence.tsid.TSID
-
Returns the instant of creation.
- getInstant(Instant) - Method in class io.hypersistence.tsid.TSID
-
Returns the instant of creation.
- getNode() - Method in class io.hypersistence.tsid.TSID.Factory.Builder
-
Get the node identifier.
- getNodeBits() - Method in class io.hypersistence.tsid.TSID.Factory.Builder
-
Get the node identifier bits length within the range 0 to 20.
- getRandom() - Method in class io.hypersistence.tsid.TSID.Factory.Builder
-
Gets the random generator.
- getTsid() - Static method in class io.hypersistence.tsid.TSID.Factory
-
Returns a new TSID.
- getTsid1024() - Static method in class io.hypersistence.tsid.TSID.Factory
-
Returns a new TSID.
- getTsid256() - Static method in class io.hypersistence.tsid.TSID.Factory
-
Returns a new TSID.
- getTsid4096() - Static method in class io.hypersistence.tsid.TSID.Factory
-
Returns a new TSID.
- getUnixMilliseconds() - Method in class io.hypersistence.tsid.TSID
-
Returns the time of creation in milliseconds since 1970-01-01.
- getUnixMilliseconds(long) - Method in class io.hypersistence.tsid.TSID
-
Returns the time of creation in milliseconds since 1970-01-01.
H
- hashCode() - Method in class io.hypersistence.tsid.TSID
-
Returns a hash code value for the TSID.
I
- INSTANCE - Static variable in class io.hypersistence.tsid.TSID.Factory
- INSTANCE_1024 - Static variable in class io.hypersistence.tsid.TSID.Factory
- INSTANCE_256 - Static variable in class io.hypersistence.tsid.TSID.Factory
- INSTANCE_4096 - Static variable in class io.hypersistence.tsid.TSID.Factory
- io.hypersistence.tsid - package io.hypersistence.tsid
- isValid(String) - Static method in class io.hypersistence.tsid.TSID
-
Checks if the input string is valid.
N
- newInstance1024() - Static method in class io.hypersistence.tsid.TSID.Factory
-
Returns a new factory for up to 1024 nodes and 4096 ID/ms.
- newInstance1024(int) - Static method in class io.hypersistence.tsid.TSID.Factory
-
Returns a new factory for up to 1024 nodes and 4096 ID/ms.
- newInstance256() - Static method in class io.hypersistence.tsid.TSID.Factory
-
Returns a new factory for up to 256 nodes and 16384 ID/ms.
- newInstance256(int) - Static method in class io.hypersistence.tsid.TSID.Factory
-
Returns a new factory for up to 256 nodes and 16384 ID/ms.
- newInstance4096() - Static method in class io.hypersistence.tsid.TSID.Factory
-
Returns a new factory for up to 4096 nodes and 1024 ID/ms.
- newInstance4096(int) - Static method in class io.hypersistence.tsid.TSID.Factory
-
Returns a new factory for up to 4096 nodes and 1024 ID/ms.
T
- THREAD_LOCAL_RANDOM_FUNCTION - Static variable in class io.hypersistence.tsid.TSID.Factory
- toBytes() - Method in class io.hypersistence.tsid.TSID
-
Converts the TSID into a byte array.
- toLong() - Method in class io.hypersistence.tsid.TSID
-
Converts the TSID into a number.
- toLowerCase() - Method in class io.hypersistence.tsid.TSID
-
Converts the TSID into a canonical string in lower case.
- toString() - Method in class io.hypersistence.tsid.TSID
-
Converts the TSID into a canonical string in upper case.
- TSID - Class in io.hypersistence.tsid
-
A value object that represents a Time-Sorted Unique Identifier (TSID).
- TSID(long) - Constructor for class io.hypersistence.tsid.TSID
-
Creates a new TSID.
- TSID_BYTES - Static variable in class io.hypersistence.tsid.TSID
-
Number of bytes of a TSID.
- TSID_CHARS - Static variable in class io.hypersistence.tsid.TSID
-
Number of characters of a TSID.
- TSID_EPOCH - Static variable in class io.hypersistence.tsid.TSID
-
Number of milliseconds of 2020-01-01T00:00:00.000Z.
- TSID.Factory - Class in io.hypersistence.tsid
-
A factory that actually generates Time-Sorted Unique Identifiers (TSID).
- TSID.Factory.Builder - Class in io.hypersistence.tsid
-
A nested class that builds custom TSID factories.
U
- unformat(String, String) - Static method in class io.hypersistence.tsid.TSID
-
Converts a string using a custom format to a TSID.
W
- withClock(Clock) - Method in class io.hypersistence.tsid.TSID.Factory.Builder
-
Set the clock to be used in tests.
- withCustomEpoch(Instant) - Method in class io.hypersistence.tsid.TSID.Factory.Builder
-
Set the custom epoch.
- withNode(Integer) - Method in class io.hypersistence.tsid.TSID.Factory.Builder
-
Set the node identifier.
- withNodeBits(Integer) - Method in class io.hypersistence.tsid.TSID.Factory.Builder
-
Set the node identifier bits length.
- withRandom(Random) - Method in class io.hypersistence.tsid.TSID.Factory.Builder
-
Set the random generator.
- withRandomFunction(IntFunction<byte[]>) - Method in class io.hypersistence.tsid.TSID.Factory.Builder
-
Set the random function.
- withRandomFunction(IntSupplier) - Method in class io.hypersistence.tsid.TSID.Factory.Builder
-
Set the random function.
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form