Index
All Classes|All Packages|Constant Field Values
A
- asLong() - Method in class com.github.nanoflakes.Nanoflake
-
Gets the nanoflake value as a Long.
- asString() - Method in class com.github.nanoflakes.Nanoflake
-
Gets the nanoflake value as a string.
C
- com.github.nanoflakes - package com.github.nanoflakes
- creationTime() - Method in class com.github.nanoflakes.Nanoflake
-
Gets the creation time as an
OffsetDateTime. - creationTimeMillis() - Method in class com.github.nanoflakes.Nanoflake
-
Gets the creation time.
E
- epoch() - Method in class com.github.nanoflakes.Nanoflake
-
Gets this nanoflake's epoch as an
OffsetDateTime. - epoch() - Method in interface com.github.nanoflakes.NanoflakeGenerator
-
Gets this nanoflake generator's epoch as an
OffsetDateTime. - epochMillis() - Method in class com.github.nanoflakes.Nanoflake
-
Gets this nanoflake's epoch.
- epochMillis() - Method in interface com.github.nanoflakes.NanoflakeGenerator
-
Gets this nanoflake generator's epoch.
- epochMillis() - Method in class com.github.nanoflakes.NanoflakeLocalGenerator
-
Gets this nanoflake generator's epoch.
- equals(Object) - Method in class com.github.nanoflakes.Nanoflake
- equals(Object) - Method in class com.github.nanoflakes.NanoflakeLocalGenerator
G
- GENERATOR_ID_BITS - Static variable in class com.github.nanoflakes.Nanoflakes
-
How much of an nanoflake is occupied by the generator ID, in bits.
- GENERATOR_ID_SHIFT - Static variable in class com.github.nanoflakes.Nanoflakes
-
The value used for generator id-based shifts.
- generatorValue(long) - Static method in class com.github.nanoflakes.Nanoflakes
-
Gets the generator ID of a nanoflake.
H
- hashCode() - Method in class com.github.nanoflakes.Nanoflake
- hashCode() - Method in class com.github.nanoflakes.NanoflakeLocalGenerator
L
- localGenerator(long, long) - Static method in class com.github.nanoflakes.Nanoflakes
-
Creates a local generator.
M
- MAX_GENERATOR_ID - Static variable in class com.github.nanoflakes.Nanoflakes
-
The maximum ID possible for a generator.
- MAX_SEQUENCE - Static variable in class com.github.nanoflakes.Nanoflakes
-
The max sequence value of a snowflake.
N
- Nanoflake - Class in com.github.nanoflakes
-
A Nanoflake.
- Nanoflake(long, long) - Constructor for class com.github.nanoflakes.Nanoflake
-
Creates a new nanoflake.
- Nanoflake(long, String) - Constructor for class com.github.nanoflakes.Nanoflake
-
Creates a new nanoflake, parsing the value from a string.
- Nanoflake(long, String, int) - Constructor for class com.github.nanoflakes.Nanoflake
-
Creates a new nanoflake, parsing the value from a string with a radix.
- NanoflakeGenerator - Interface in com.github.nanoflakes
-
A generator of nanoflakes.
- NanoflakeLocalGenerator - Class in com.github.nanoflakes
-
A local generator of nanoflakes.
- NanoflakeLocalGenerator(long, long) - Constructor for class com.github.nanoflakes.NanoflakeLocalGenerator
-
Creates a new local generator of nanoflakes.
- Nanoflakes - Class in com.github.nanoflakes
-
Utility methods and constants related to Nanoflakes.
- Nanoflakes() - Constructor for class com.github.nanoflakes.Nanoflakes
- next() - Method in interface com.github.nanoflakes.NanoflakeGenerator
-
Gets the next nanoflake.
- next() - Method in class com.github.nanoflakes.NanoflakeLocalGenerator
-
Gets the next nanoflake.
S
- SEQUENCE_BITS - Static variable in class com.github.nanoflakes.Nanoflakes
-
How much of an nanoflake is occupied by sequence number, in bits.
- sequenceValue(long) - Static method in class com.github.nanoflakes.Nanoflakes
-
Gets the sequence ID of a nanoflake.
T
- TIMESTAMP_BITS - Static variable in class com.github.nanoflakes.Nanoflakes
-
How much of the nanoflake is occupied by the timestamp of the ID, in bits.
- TIMESTAMP_SHIFT - Static variable in class com.github.nanoflakes.Nanoflakes
-
The value used for timestamp-based shifts.
- timestampValue(long) - Static method in class com.github.nanoflakes.Nanoflakes
-
Gets the timestamp of a nanoflake.
- toDateTime(long) - Static method in class com.github.nanoflakes.Nanoflakes
-
Converts an UTC time in milliseconds to an
OffsetDateTime. - toString() - Method in class com.github.nanoflakes.Nanoflake
- toString() - Method in class com.github.nanoflakes.NanoflakeLocalGenerator
W
- withRadix(int) - Method in class com.github.nanoflakes.Nanoflake
-
Gets the nanoflake value as a string, using a specified radix.
All Classes|All Packages|Constant Field Values