Package org.fisco.bcos.sdk.rlp
Class RlpString
java.lang.Object
org.fisco.bcos.sdk.rlp.RlpString
- All Implemented Interfaces:
RlpType
public final class RlpString extends java.lang.Object implements RlpType
RLP string type.
-
Field Summary
Fields Modifier and Type Field Description byte[]
value
-
Method Summary
Modifier and Type Method Description java.math.BigInteger
asPositiveBigInteger()
java.lang.String
asString()
static RlpString
create(byte value)
static RlpString
create(byte[] value)
static RlpString
create(long value)
static RlpString
create(java.lang.String value)
static RlpString
create(java.math.BigInteger value)
boolean
equals(java.lang.Object o)
byte[]
getBytes()
int
hashCode()
-
Field Details
-
value
public final byte[] value
-
-
Method Details
-
getBytes
public final byte[] getBytes() -
asPositiveBigInteger
public java.math.BigInteger asPositiveBigInteger() -
asString
public java.lang.String asString() -
create
-
create
-
create
-
create
-
create
-
equals
public boolean equals(java.lang.Object o)- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
-