Name.Table implementations that store
names as Modified UTF-8 data in byte[] arrays.
This is NOT part of any supported API. If you write code that depends on this, you do so at your own risk. This code and its internal interfaces are subject to change or deletion without notice.
| Modifier and Type | Class and Description |
|---|---|
| protected abstract static class |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected static boolean | |
| protected static int |
| Utf8NameTable | back to summary |
|---|---|
| protected Utf8NameTable(Names names) Constructor.
| |
| equals | back to summary |
|---|---|
| protected static boolean equals(byte[] buf1, int off1, byte[] buf2, int off2, int len) Compare two subarrays. | |
| hashValue | back to summary |
|---|---|
| protected static int hashValue(byte[] buf, int off, int len) Generate a hash value for a subarray. | |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public Name | append(Name name0)
Overrides com. Return the concatenation of this name and the given name. |
| public Name | append(char ch, Name name0)
Overrides com. Return the concatenation of this name, the given ASCII character, and the given name. |
| public int | compareTo(Name name0)
Overrides com. Implements java. Order names lexicographically. |
| protected abstract byte[] | |
| protected abstract int | |
| protected abstract int | |
| protected abstract int | |
| public void | getUtf8Bytes(byte[] buf, int off)
Implements abstract com. Write the Modified UTF-8 encoding of this name into the given buffer starting at the specified offset. |
| public int | getUtf8Length()
Implements abstract com. Get the length of the Modified UTF-8 encoding of this name. |
| public int | hashCode()
Implements abstract com. Implements javax. Obeys the general contract of |
| public int | lastIndexOfAscii(char ch)
Overrides com. Returns last occurrence of the given ASCII character in this name, -1 if not found. |
| public int | length()
Overrides com. Implements java. Returns the length of this character sequence. |
| protected boolean | nameEquals(Name that)
Implements abstract com. Subclass check for equality. |
| public boolean | startsWith(Name prefix0)
Overrides com. Determine whether this name has the given Name as a prefix. |
| public String | toString()
Implements abstract com. Implements java. Returns a string containing the characters in this sequence in the same order as this sequence. |
| NameImpl | back to summary |
|---|---|
| pack-priv NameImpl(Utf8NameTable table) | |
| append | back to summary |
|---|---|
| public Name append(Name name0) Overrides com. Doc from com. Return the concatenation of this name and the given name. The given name must come from the same table as this one.
| |
| append | back to summary |
|---|---|
| public Name append(char ch, Name name0) Overrides com. Doc from com. Return the concatenation of this name, the given ASCII character, and the given name. The given name must come from the same table as this one.
| |
| compareTo | back to summary |
|---|---|
| public int compareTo(Name name0) Overrides com. Implements java. Doc from com. Order names lexicographically.
The ordering defined by this method must match the ordering
defined by the corresponding
| |
| getByteData | back to summary |
|---|---|
| protected abstract byte[] getByteData() Get the | |
| getByteLength | back to summary |
|---|---|
| protected abstract int getByteLength() Get the Modified UTF-8 data length in the byte array. | |
| getByteOffset | back to summary |
|---|---|
| protected abstract int getByteOffset() Get the Modified UTF-8 data offset into the byte array. | |
| getNameIndex | back to summary |
|---|---|
| protected abstract int getNameIndex() Get a unique index corresponding to this instance. | |
| getUtf8Bytes | back to summary |
|---|---|
| public void getUtf8Bytes(byte[] buf, int off) Implements abstract com. Doc from com. Write the Modified UTF-8 encoding of this name into the given buffer starting at the specified offset.
| |
| getUtf8Length | back to summary |
|---|---|
| public int getUtf8Length() Implements abstract com. Doc from com. Get the length of the Modified UTF-8 encoding of this name.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Implements abstract com. Implements javax. Doc from javax. Obeys the general contract of
| |
| lastIndexOfAscii | back to summary |
|---|---|
| public int lastIndexOfAscii(char ch) Overrides com. Doc from com. Returns last occurrence of the given ASCII character in this name, -1 if not found.
The implementation in
| |
| length | back to summary |
|---|---|
| public int length() Overrides com. Implements java. Doc from java. Returns the length of this character sequence. The length is the number
of 16-bit
| |
| nameEquals | back to summary |
|---|---|
| protected boolean nameEquals(Name that) Implements abstract com. Doc from com. Subclass check for equality.
This method can assume that the given instance is the same type
as this instance and is associated to the same
| |
| startsWith | back to summary |
|---|---|
| public boolean startsWith(Name prefix0) Overrides com. Doc from com. Determine whether this name has the given Name as a prefix.
The implementation in
| |
| toString | back to summary |
|---|---|
| public String toString() Implements abstract com. Implements java. Doc from java. Returns a string containing the characters in this sequence in the same order as this sequence. The length of the string will be the length of this sequence.
| |