public class StringId extends Object implements Id
Constructor and Description |
---|
StringId(String literalId)
Constructs a new
StringId with its literal representation. |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Id o) |
boolean |
equals(Object o) |
static Id |
generate()
Creates a new instance of an
Id initialized with a String representation generated by using the
EcoreUtil.generateUUID() method. |
int |
hashCode() |
Long |
toLong()
Returns the
Long number of this Id . |
String |
toString()
Returns the
String representation of this Id . |
@Nonnull public static Id generate()
Id
initialized with a String
representation generated by using the
EcoreUtil.generateUUID()
method.Id
EcoreUtil.generateUUID()
public int compareTo(@Nonnull Id o)
compareTo
in interface Comparable<Id>
@Nonnull public Long toLong()
Id
Long
number of this Id
.Copyright © 2013–2017 Atlanmod INRIA LINA Mines Nantes. All rights reserved.