Home | History | Annotate | Download | only in base

Lines Matching refs:table

26  * An immutable version of CharMatcher for smallish sets of characters that uses a hash table
34 private final char[] table;
38 private SmallCharMatcher(char[] table, long filter, boolean containsZero,
41 this.table = table;
72 * Returns an array size suitable for the backing array of a hash table that
95 // Compute the hash table.
96 char[] table = new char[chooseTableSize(size)];
97 int mask = table.length - 1;
104 if (table[index] == 0) {
105 table[index] = (char) c;
112 return new SmallCharMatcher(table, filter, containsZero, description);
123 int mask = table.length - 1;
128 if (table[index] == 0) {
131 } else if (table[index] == c) {
137 // Check to see if we wrapped around the whole table.
143 void setBits(BitSet table) {
145 table.set(0);
147 for (char c : this.table) {
149 table.set(c);