public abstract class AbstractInterner<T> extends Object
Modifier and Type | Field and Description |
---|---|
protected net.openhft.chronicle.bytes.util.AbstractInterner.InternerEntry<T>[] |
entries |
protected int |
mask |
protected int |
shift |
protected boolean |
toggle |
Constructor and Description |
---|
AbstractInterner(int capacity) |
Modifier and Type | Method and Description |
---|---|
protected abstract T |
getValue(BytesStore bs,
int length) |
T |
intern(Bytes cs) |
T |
intern(Bytes cs,
int length) |
protected boolean |
toggle() |
int |
valueCount() |
@NotNull protected final net.openhft.chronicle.bytes.util.AbstractInterner.InternerEntry<T>[] entries
protected final int mask
protected final int shift
protected boolean toggle
public AbstractInterner(int capacity) throws IllegalArgumentException
IllegalArgumentException
public T intern(@NotNull Bytes cs) throws IllegalArgumentException, net.openhft.chronicle.core.io.IORuntimeException, BufferUnderflowException
IllegalArgumentException
net.openhft.chronicle.core.io.IORuntimeException
BufferUnderflowException
public T intern(@NotNull Bytes cs, int length) throws IllegalArgumentException, net.openhft.chronicle.core.io.IORuntimeException, BufferUnderflowException
IllegalArgumentException
net.openhft.chronicle.core.io.IORuntimeException
BufferUnderflowException
protected abstract T getValue(BytesStore bs, int length) throws net.openhft.chronicle.core.io.IORuntimeException
net.openhft.chronicle.core.io.IORuntimeException
protected boolean toggle()
public int valueCount()
Copyright © 2016. All rights reserved.