| java.lang.Object uk.org.ponder.stringutil.StringVat
StringVat | public class StringVat (Code) | | This class was intended to provide an atom table of strings represented
as (relatively) opaque integer indices. This allows fast comparison via
comparison of indices, and pre-interning of character data that would
otherwise have required a String to be temporarily allocated.
In general this class was found to be more trouble than it was worth
(despite working correctly), in particular because deletion was never
implemented and because thread-safety issues would probably have
degraded performance more than was initially hoped in any case.
|
Method Summary | |
public void | appendto(CharWrap buf, int index) | public void | concatto(CharWrap buf, int index1, int index2) | public boolean | equals(int index, String tocompare) | public boolean | equals(int index, char[] array, int start, int length) | public int | findindex(char[] array, int start, int length) | public int | findindex(String string) | public static void | main(String[] argv) | public int | store(CharWrap wrap) | public int | store(char[] array, int start, int length) | public int | storeunique(CharWrap wrap) | public int | storeunique(char[] array, int start, int length) | public String | toString(int index) |
last_page_pos | int last_page_pos(Code) | | |
storage | char[][] storage(Code) | | |
concatto | public void concatto(CharWrap buf, int index1, int index2)(Code) | | |
equals | public boolean equals(int index, String tocompare)(Code) | | |
equals | public boolean equals(int index, char[] array, int start, int length)(Code) | | |
findindex | public int findindex(char[] array, int start, int length)(Code) | | |
store | public int store(char[] array, int start, int length)(Code) | | |
storeunique | public int storeunique(char[] array, int start, int length)(Code) | | |
|
|