Code example for TreeSet

Methods: add

0
  public void addRow(int indexNum, int rowNum)
  { 
    TreeSet<Integer> rowNums = comprisedRows.get(indexNum);
    if (rowNums == null) {
      rowNums = Sets.newTreeSet();
      comprisedRows.put(indexNum, rowNums);
    } 
    rowNums.add(rowNum);
  } 
 
  public Map<Integer, TreeSet<Integer>> getComprisedRows()
  { 
    return comprisedRows;
  } 
 
  public int getRowNum() 
  { 
    return rowNum;
  } 
 
  public Map<String, String> getDescriptions()