public class ByteString extends Object implements CharSequence
| Modifier and Type | Field and Description |
|---|---|
byte[] |
data
Holds the string
|
protected int |
hashCode
Hash code
|
boolean |
isInterned
is interned
|
protected static WeakHashMap<ByteString,ByteString> |
values
Holds all strings
|
| Modifier | Constructor and Description |
|---|---|
protected |
ByteString(ByteString s,
int start,
int end)
Use subSequence()
|
protected |
ByteString(CharSequence s)
Use of()
|
| Modifier and Type | Method and Description |
|---|---|
char |
charAt(int arg0) |
boolean |
equals(Object obj) |
int |
hashCode() |
int |
length() |
static void |
main(String[] args) |
static ByteString |
of(CharSequence s) |
CharSequence |
subSequence(int arg0,
int arg1) |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitchars, codePointsprotected static WeakHashMap<ByteString,ByteString> values
public byte[] data
protected int hashCode
public boolean isInterned
protected ByteString(ByteString s, int start, int end)
protected ByteString(CharSequence s)
public static ByteString of(CharSequence s)
public char charAt(int arg0)
charAt in interface CharSequencepublic int length()
length in interface CharSequencepublic CharSequence subSequence(int arg0, int arg1)
subSequence in interface CharSequencepublic String toString()
toString in interface CharSequencetoString in class ObjectCopyright © 2018. All rights reserved.