private static final class AsciiStringInterner.Key extends AsciiStringInterner.BaseKey
byte[] must be a copy
that will never be mutated.| Modifier and Type | Field and Description |
|---|---|
(package private) byte[] |
key |
| Constructor and Description |
|---|
Key(byte[] key,
int hash) |
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
appendString(java.lang.StringBuilder sb) |
boolean |
equals(byte[] other,
int offset,
int length) |
(package private) boolean |
equalsBytes(AsciiStringInterner.BaseKey other) |
equals, hashCodeboolean equalsBytes(AsciiStringInterner.BaseKey other)
equalsBytes in class AsciiStringInterner.BaseKeypublic boolean equals(byte[] other,
int offset,
int length)
equals in class AsciiStringInterner.BaseKeyvoid appendString(java.lang.StringBuilder sb)
appendString in class AsciiStringInterner.BaseKey