public class Id extends java.lang.Object implements java.lang.Comparable<Id>, java.io.Serializable
Constructor and Description |
---|
Id(long sourceNr,
long idNr)
Create an identifier.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Id id) |
boolean |
equals(java.lang.Object o) |
long |
getIdNr()
Get the numeric identifier of the item or triple in the source
|
long |
getSourceNr()
Get the numeric identifier of the source
|
int |
hashCode() |
static Id |
parseId(java.lang.String s)
Parse a string representation of an identifier
|
java.lang.String |
toString() |
public Id(long sourceNr, long idNr)
sourceNr
- the numeric identifier of a sourceidNr
- the numeric identifier of an item or triple in the sourcepublic long getSourceNr()
public long getIdNr()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public static Id parseId(java.lang.String s)
s
- a string representation of an identifier