|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javatools.datatypes.ByteString
public class ByteString
This class is part of the Java Tools (see http://mpii.de/yago-naga/javatools). It is licensed under the Creative Commons Attribution License (see http://creativecommons.org/licenses/by/3.0) by the YAGO-NAGA team (see http://mpii.de/yago-naga). This class represents strings with 1 byte per character. Thus, they use roughly half as much space as ordinary strings -- but they also cannot store all characters. ByteStrings are always unique. they can be compared with ==.
Field Summary | |
---|---|
byte[] |
data
Holds the string |
boolean |
isInterned
is interned |
Method Summary | |
---|---|
char |
charAt(int arg0)
|
boolean |
equals(java.lang.Object obj)
|
int |
hashCode()
|
int |
length()
|
static void |
main(java.lang.String[] args)
|
static ByteString |
of(java.lang.CharSequence s)
Constructor |
java.lang.CharSequence |
subSequence(int arg0,
int arg1)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public byte[] data
public boolean isInterned
Method Detail |
---|
public static ByteString of(java.lang.CharSequence s)
public char charAt(int arg0)
charAt
in interface java.lang.CharSequence
public int length()
length
in interface java.lang.CharSequence
public java.lang.CharSequence subSequence(int arg0, int arg1)
subSequence
in interface java.lang.CharSequence
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in interface java.lang.CharSequence
toString
in class java.lang.Object
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |