public class Bit8StringInterner extends AbstractInterner<String>
AbstractInterner
entries, mask, shift, toggle
Constructor and Description |
---|
Bit8StringInterner(int capacity)
Constructs a new Bit8StringInterner with the specified capacity.
|
Modifier and Type | Method and Description |
---|---|
protected @NotNull String |
getValue(@NotNull BytesStore cs,
int length)
Returns a String value from the provided
BytesStore object. |
intern, intern, intern, intern, toggle, valueCount
public Bit8StringInterner(int capacity)
capacity
- the initial capacity for the interner@NotNull protected @NotNull String getValue(@NotNull @NotNull BytesStore cs, int length) throws IllegalStateException, BufferUnderflowException
BytesStore
object.getValue
in class AbstractInterner<String>
cs
- the BytesStore object from which to get the String valuelength
- the length of the string to be internedIllegalStateException
- if this method is called in an inappropriate stateBufferUnderflowException
- if the BytesStore doesn't have enough remaining capacityCopyright © 2023. All rights reserved.