Пример #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();
 }