@ParametersAreNonnullByDefault public class LongIdProvider extends AbstractIdProvider
IdProvider that provides Id with a long representation.LongId| Modifier and Type | Method and Description | 
|---|---|
| Id | fromHexString(String hexValue)Creates a new  Idfrom an hexadecimal representation. | 
| Id | fromLong(long value)Creates a new  Idfrom a long representation. | 
| Id | generate()Generates a new instance of an  Idinitialized with a random value. | 
| Id | generate(String baseValue)Generates a new instance of an  Idfrom abaseValue. | 
| static IdProvider | getInstance()Returns the instance of this class. | 
hasher@Nonnull public static IdProvider getInstance()
@Nonnull public Id fromLong(long value)
IdProviderId from a long representation.value - the long representation of the new identifierIdId.toLong()@Nonnull public Id fromHexString(String hexValue)
IdProviderId from an hexadecimal representation.hexValue - the hexadecimal representation of the new identifierIdId.toHexString()@Nonnull public Id generate()
IdProviderId initialized with a random value.Id@Nonnull public Id generate(String baseValue)
IdProviderId from a baseValue.
 
 Several calls to this method with the same baseValue should return the same identifier.
baseValue - the base value of the identifierIdCopyright © 2013–2019 Atlanmod. All rights reserved.