public final class ShortString extends Object implements Comparable<ShortString>
Constructor and Description |
---|
ShortString(Number160 number160)
Creates a short string, decodes the byte array from UTF-8 and checks for
its length
|
ShortString(String s1)
Creates a short string, encodes string in UTF-8 and checks for its length
|
public ShortString(String s1)
s1
- The stringUnsupportedEncodingException
- if UTF-8 is not available. If this is the case, then we have
a problem...public ShortString(Number160 number160) throws UnsupportedEncodingException
me
- The byte arrayUnsupportedEncodingException
- If this is the case, then we have a problem...public Number160 toNumber160()
public int compareTo(ShortString o)
compareTo
in interface Comparable<ShortString>
Copyright © 2013. All Rights Reserved.