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()  

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • 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

      public static RlpString create​(byte[] value)
    • create

      public static RlpString create​(byte value)
    • create

      public static RlpString create​(java.math.BigInteger value)
    • create

      public static RlpString create​(long value)
    • create

      public static RlpString create​(java.lang.String value)
    • equals

      public boolean equals​(java.lang.Object o)
      Overrides:
      equals in class java.lang.Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class java.lang.Object