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 internedBufferUnderflowException
- If the BytesStore doesn't have enough remaining capacitynet.openhft.chronicle.core.io.ClosedIllegalStateException
- If the resource has been released or closed.net.openhft.chronicle.core.io.ThreadingIllegalStateException
- If this resource was accessed by multiple threads in an unsafe wayIllegalStateException
Copyright © 2023. All rights reserved.