public class UnsharedNameTable extends Name.Table
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 | Field and Description |
---|---|
int |
index
Index counter for names in this table.
|
names
Constructor and Description |
---|
UnsharedNameTable(Names names) |
UnsharedNameTable(Names names,
int hashSize)
Allocator
|
Modifier and Type | Method and Description |
---|---|
static Name.Table |
create(Names names) |
void |
dispose()
Release any resources used by this table.
|
Name |
fromChars(char[] cs,
int start,
int len)
Get the name from the characters in cs[start..start+len-1].
|
Name |
fromUtf(byte[] cs,
int start,
int len)
get the name for the bytes in cs[start..start+len-1].
|
equals, fromString, fromUtf, hashValue
public UnsharedNameTable(Names names, int hashSize)
names
- The main name tablehashSize
- the (constant) size to be used for the hash table
needs to be a power of two.public UnsharedNameTable(Names names)
public static Name.Table create(Names names)
public Name fromChars(char[] cs, int start, int len)
Name.Table
fromChars
in class Name.Table
public Name fromUtf(byte[] cs, int start, int len)
Name.Table
fromUtf
in class Name.Table
public void dispose()
Name.Table
dispose
in class Name.Table
Copyright © 2015. All rights reserved.