Class pmr.util.StringCounter
All Packages Class Hierarchy This Package Previous Next Index
Class pmr.util.StringCounter
java.lang.Object
|
+----java.util.Vector
|
+----pmr.util.StringCounter
- public class StringCounter
- extends Vector
Stores the counts of unique Strings; Uses Vector searching which is slow
- Author:
- (C) P. Murray-Rust, 1996
-
StringCounter()
-
-
addString(String)
- add a String.
-
getCount(String)
- gets current count of string
-
getCounts()
- dump counts
-
getStrings()
- get Strings
-
getTotalStringCount()
- get total number of strings added
StringCounter
public StringCounter()
addString
public int addString(String string)
- add a String. returns total current count
getCount
public int getCount(String string)
- gets current count of string
getCounts
public int[] getCounts()
- dump counts
getStrings
public Vector getStrings()
- get Strings
getTotalStringCount
public int getTotalStringCount()
- get total number of strings added
All Packages Class Hierarchy This Package Previous Next Index