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