String
occurs a point in the runtime. We use this to investigate optimisations of the handling of
strings in the runtime, principally to avoid checks for byte-nature where that is already known.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public synchronized void | |
| public synchronized Map | |
| public void |
| counts | back to summary |
|---|---|
| private static HashMap<String, Integer> counts | |
| StringCounter | back to summary |
|---|---|
| public StringCounter() | |
| count | back to summary |
|---|---|
| public synchronized void count(String s) Count this occurrence.
| |
| top | back to summary |
|---|---|
| public synchronized Map Report the top | |
| top | back to summary |
|---|---|
| public void top(int n, PrintStream out) Report the top n counts. | |