Example #1
0
 /** Iterates to the next element in the list */
 public void iterate() {
   list.iterate();
 }
Example #2
0
 /**
  * Tests if the iterator is out of the bounds of the list
  *
  * @return True if the iterator has reached the end of the list, false in other case
  */
 public boolean outOfBounds() {
   return list.outOfBounds();
 }
Example #3
0
 /**
  * Obtains the value of the class pointed by the current state of the list's iterator
  *
  * @return The current frequency
  */
 public String getCurrentValue() {
   return list.getCurrent().getValue();
 }
Example #4
0
 /**
  * Returns the frequency of the class pointed by the current state of the list's iterator
  *
  * @return The current frequency
  */
 public int getCurrentFreq() {
   return list.getCurrent().getFreq();
 }
Example #5
0
 /** Resets the iterator of the list to the beginning */
 public void reset() {
   list.reset();
 }
Example #6
0
 /**
  * This method adds an element (a class) to the list
  *
  * @param elem The index of the class we want to add
  */
 public void addElement(double elem) {
   list.AddElement(String.valueOf(elem));
 }
Example #7
0
 /**
  * Gives the total number of elements in the list (i.e. the sum of the frequencies).
  *
  * @return the total number of elements in the list
  */
 public int totalElems() {
   return list.totalElems();
 }