|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmondrian.util.ByteString
public class ByteString
Collection of bytes.
ByteString is to bytes what String is to chars: It is immutable,
implements equality (hashCode and equals), comparison (compareTo) and
serialization correctly.
| Constructor Summary | |
|---|---|
ByteString(byte[] bytes)
Creates a ByteString. |
|
| Method Summary | |
|---|---|
byte |
byteAt(int i)
Returns the byte at a given position in the byte string. |
Object |
clone()
|
int |
compareTo(ByteString that)
|
boolean |
equals(Object obj)
|
int |
hashCode()
|
int |
length()
Returns the number of bytes in this byte string. |
String |
toString()
Returns this byte string in hexadecimal format. |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ByteString(byte[] bytes)
bytes - Bytes| Method Detail |
|---|
public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic int compareTo(ByteString that)
compareTo in interface Comparable<ByteString>public String toString()
toString in class Objectpublic Object clone()
clone in class Objectpublic int length()
public byte byteAt(int i)
i - Index
IndexOutOfBoundsException - if the index argument is negative or not less than
length()
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||