Name.Table using Strings.
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 |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final boolean | |
| private final HashMap |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static StringNameTable | |
| public void | dispose()
Implements abstract com. Release any resources used by this table. |
| public Name | fromChars(char[] buf, int off, int len)
Implements abstract com. Get the unique |
| public Name | fromString(String string)
Overrides com. Get the unique |
| public Name | fromUtf(byte[] buf, int off, int len, Convert.
Implements abstract com. Get the unique |
| intern | back to summary |
|---|---|
| private final boolean intern | |
| nameMap | back to summary |
|---|---|
| private final HashMap<String, Name> nameMap | |
| StringNameTable | back to summary |
|---|---|
| public StringNameTable(Names names, boolean intern) | |
| StringNameTable | back to summary |
|---|---|
| public StringNameTable(Names names, int initialCapacity, boolean intern) | |
| create | back to summary |
|---|---|
| public static StringNameTable create(Names names, boolean intern) | |
| dispose | back to summary |
|---|---|
| public void dispose() Implements abstract com. Doc from com. Release any resources used by this table.
| |
| fromChars | back to summary |
|---|---|
| public Name fromChars(char[] buf, int off, int len) Implements abstract com. Doc from com. Get the unique
| |
| fromString | back to summary |
|---|---|
| public Name fromString(String string) Overrides com. Doc from com. Get the unique
The implementation in
| |
| fromUtf | back to summary |
|---|---|
| public Name fromUtf(byte[] buf, int off, int len, Convert. Implements abstract com. Doc from com. Get the unique
| |
| Modifier and Type | Field and Description |
|---|---|
| private final String |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | contentEquals(CharSequence cs)
Overrides com. Implements javax. Compares this name to the specified |
| 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 |
| protected boolean | nameEquals(Name that)
Implements abstract com. Subclass check for equality. |
| public String | toString()
Implements abstract com. Implements java. Returns a string containing the characters in this sequence in the same order as this sequence. |
| string | back to summary |
|---|---|
| private final String string | |
| NameImpl | back to summary |
|---|---|
| pack-priv NameImpl(StringNameTable table, String string) | |
| contentEquals | back to summary |
|---|---|
| public boolean contentEquals(CharSequence cs) Overrides com. Implements javax. Doc from com. Compares this name to the specified
The implementation in
| |
| 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
| |
| 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
| |
| 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.
| |