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