コード例 #1
0
    public int compare(PublicationFile datafile1, PublicationFile datafile2) {
      // log.debug("in HeritabilityDataFileSortComparator. sortOrder = "+getSortOrder() + ",
      // sortColumn = "+getSortColumn());
      // log.debug("datafile1 organism = "+datafile1.getOrganism()+ ", datafile2 organism =
      // "+datafile2.getOrganism());

      if (getSortColumn().equals("type")) {
        compare = datafile1.getType().compareTo(datafile2.getType());
      } else if (getSortColumn().equals("fileName")) {
        compare = datafile1.getFileName().compareTo(datafile2.getFileName());
      }
      return compare;
    }
コード例 #2
0
 public void print(PublicationFile myPublicationFile) {
   myPublicationFile.print();
 }