public class KeyId
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.math.BigInteger |
value |
Constructor and Description |
---|
KeyId(java.math.BigInteger id)
Creates a new KeyId from its BigInteger representation.
|
KeyId(int id)
Creates a new KeyId from its integer representation.
|
KeyId(java.lang.String id)
Creates a new KeyId from its string representation.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
java.math.BigInteger |
toBigInteger()
Converts the KeyId into its BigInteger representation.
|
java.lang.String |
toHexString()
Converts the KeyId into its hex string representation.
|
java.lang.String |
toString()
Converts the KeyId into its string representation.
|
public KeyId(java.lang.String id)
id
- a string containing the decimal or hex value for the identifier.public KeyId(java.math.BigInteger id)
id
- a BigInteger containing the identifier.public KeyId(int id)
id
- an integer containing the identifier.public java.math.BigInteger toBigInteger()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toHexString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object