public class StringCache extends Object
CharSequence and checks if there is a
match in the cache, returning a cached char sequence that equals the input.
This is similar functionality to String.intern() but does not require
a String to intern, only a CharSequence.| Constructor and Description |
|---|
StringCache() |
| Modifier and Type | Method and Description |
|---|---|
int |
cacheSize() |
void |
clearCache() |
CharSequence |
intern(CharSequence cs) |
public CharSequence intern(CharSequence cs)
public int cacheSize()
public void clearCache()
Copyright © 2019. All rights reserved.