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;
  }
}

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;
  }

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

Add missing function in index info