@ParametersAreNonnullByDefault public interface IdProvider
Id
instances.Modifier and Type | Method and Description |
---|---|
Id |
fromHexString(String hexValue)
Creates a new
Id from an hexadecimal representation. |
Id |
fromLong(long value)
Creates a new
Id from a long representation. |
Id |
generate()
Generates a new instance of an
Id initialized with a random value. |
Id |
generate(String baseValue)
Generates a new instance of an
Id from a baseValue . |
@Nonnull Id fromLong(long value)
Id
from a long representation.value
- the long representation of the new identifierId
Id.toLong()
@Nonnull Id fromHexString(String hexValue)
Id
from an hexadecimal representation.hexValue
- the hexadecimal representation of the new identifierId
IllegalArgumentException
- if the hexValue
does not represent an hexadecimal valueId.toHexString()
@Nonnull Id generate()
Id
initialized with a random value.Id
Copyright © 2013–2019 Atlanmod. All rights reserved.