public class UTF8StringInterner extends Object
Modifier and Type | Field and Description |
---|---|
protected String[] |
interner |
protected int |
mask |
protected int |
shift |
protected boolean |
toggle |
Constructor and Description |
---|
UTF8StringInterner(int capacity) |
Modifier and Type | Method and Description |
---|---|
String |
intern(Bytes cs) |
protected boolean |
toggle() |
int |
valueCount() |
@NotNull protected final String[] interner
protected final int mask
protected final int shift
protected boolean toggle
public UTF8StringInterner(int capacity) throws IllegalArgumentException
IllegalArgumentException
public String intern(@NotNull Bytes cs) throws IllegalArgumentException, UTFDataFormatRuntimeException, BufferUnderflowException
protected boolean toggle()
public int valueCount()
Copyright © 2016. All rights reserved.