org.eml.sir.rel
Class FrequencyItem

java.lang.Object
  extended byorg.eml.sir.rel.FrequencyItem
All Implemented Interfaces:
java.io.Serializable

public class FrequencyItem
extends java.lang.Object
implements java.io.Serializable

An instance of this class contains information regarding a String and its frequency. A FrequencyItem is used to count and sort String occurrences.

Author:
Hendrik Niederlich (EML-R)
See Also:
Serialized Form

Constructor Summary
FrequencyItem()
          Create a new instance of FrequencyItem.
FrequencyItem(java.lang.String graphs, int number)
          Create a new instance of FrequencyItem.
 
Method Summary
 int getFrequency()
          Return the frequency of this FrequencyItem.
 java.lang.String getGraphs()
          Return the String of this FrequencyItem.
 void setFrequency(int number)
          Set the frequency of this FrequencyItem.
 void setGraphs(java.lang.String graphs)
          Set the String of this FrequencyItem.
 java.lang.String toString()
          Return a String representation of this FrequencyItem.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FrequencyItem

public FrequencyItem()
Create a new instance of FrequencyItem.


FrequencyItem

public FrequencyItem(java.lang.String graphs,
                     int number)
Create a new instance of FrequencyItem.

Method Detail

getGraphs

public java.lang.String getGraphs()
Return the String of this FrequencyItem.


getFrequency

public int getFrequency()
Return the frequency of this FrequencyItem.


setGraphs

public void setGraphs(java.lang.String graphs)
Set the String of this FrequencyItem.


setFrequency

public void setFrequency(int number)
Set the frequency of this FrequencyItem.


toString

public java.lang.String toString()
Return a String representation of this FrequencyItem.