java.lang.Object
me.ahoo.cosid.runtime.GeneratorSpec.Instance
- All Implemented Interfaces:
GeneratorSpec
- Enclosing interface:
GeneratorSpec
A user
long generator instance, for specs built in code.
The runtime does not own it (D41): it does not close, renew nor prefetch it, and it needs no store nor machine
slot. It takes part in every lookup (generator(name), stringGenerator(name), get(name,
type)), in IdFiller, in describe() (strategy custom, details class), in counting
and in GeneratorSpec.Disabled.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface me.ahoo.cosid.runtime.GeneratorSpec
GeneratorSpec.CosId80, GeneratorSpec.Custom, GeneratorSpec.Disabled, GeneratorSpec.Instance, GeneratorSpec.PeriodicSegment, GeneratorSpec.Segment, GeneratorSpec.Snowflake, GeneratorSpec.UuidV7 -
Method Summary
Modifier and TypeMethodDescriptionbuilder(IdGenerator ids) A builder of a generator instance.codec()The codec list of its text ids, applied in order; as for aGeneratorSpec.Segment, without a layout, so neither aCodecSpec.Friendlynor aCodecSpec.DatePrefixfrom the id time.booleaninthashCode()ids()The generator.toString()
-
Method Details
-
builder
A builder of a generator instance.- Parameters:
ids- the generator- Returns:
- the builder
-
ids
The generator.- Returns:
- the ids
-
codec
The codec list of its text ids, applied in order; as for aGeneratorSpec.Segment, without a layout, so neither aCodecSpec.Friendlynor aCodecSpec.DatePrefixfrom the id time.- Returns:
- the codec list; default empty, for none
-
equals
-
hashCode
public int hashCode() -
toString
-