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