package hk.ust.comp4321.database;

/**
 * 
 * @author Alex Poon
 */
public class IndexInfo
{

  //Constants and fields.
  // -------------------------------------------------------------------------

  private int id;
  private int frequency;

  // Constructors.
  // -------------------------------------------------------------------------

  /**
   * This constrcutor encapsulates the index id and frequency of an index.
   * 
   * @param id        
   * @param frequency 
   */
  public IndexInfo(int id, int frequency)
  {
    this.id = id;
    this.frequency = frequency;
  }

  /**
   * This method returns the index id of the index instance.
   * 
   * @return the id of this index
   */
  public int getId()
  {
    return this.id;
  }
}

@@ -737,11 +737,205 @@
 .id;%0A  %7D
+%0A%0A  /**%0A   * This method returns the frequency of the index instance.%0A   * %0A   * @return the frequency of the index instance %0A   */%0A  public int getFrequency()%0A  %7B%0A    return this.frequency;%0A  %7D
 %0A%7D%0A

Add missing function in index info