类 FrequencyTable<T>

  • 类型参数:
    T - type of object to be counted

    public class FrequencyTable<T>
    extends Object
    Frequency counters
    作者:
    Chan Chung Kwong
    • 构造器详细资料

      • FrequencyTable

        public FrequencyTable()
        Create a table
    • 方法详细资料

      • advance

        public void advance​(T key)
        Count a object
        参数:
        key - the object
      • getCount

        public int getCount​(T key)
        参数:
        key - a object
        返回:
        count of the object
      • getKeys

        public Set<T> getKeys()
        返回:
        set of objects counted