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

Constructor Index

 o StringCounter()

Method Index

 o addString(String)
add a String.
 o getCount(String)
gets current count of string
 o getCounts()
dump counts
 o getStrings()
get Strings
 o getTotalStringCount()
get total number of strings added

Constructors

 o StringCounter
  public StringCounter()

Methods

 o addString
  public int addString(String string)
add a String. returns total current count
 o getCount
  public int getCount(String string)
gets current count of string
 o getCounts
  public int[] getCounts()
dump counts
 o getStrings
  public Vector getStrings()
get Strings
 o getTotalStringCount
  public int getTotalStringCount()
get total number of strings added

All Packages  Class Hierarchy  This Package  Previous  Next  Index