Пример #1
0
 /** Iterates to the next element in the list */
 public void iterate() {
   list.iterate();
 }
Пример #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();
 }
Пример #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();
 }
Пример #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();
 }
Пример #5
0
 /** Resets the iterator of the list to the beginning */
 public void reset() {
   list.reset();
 }
Пример #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));
 }
Пример #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();
 }