/** Iterates to the next element in the list */ public void iterate() { list.iterate(); }
/** * 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(); }
/** * 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(); }
/** * 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(); }
/** Resets the iterator of the list to the beginning */ public void reset() { list.reset(); }
/** * 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)); }
/** * 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(); }