home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2004 December / PCpro_2004_12.ISO / files / webserver / xampp / xampp-cocoon-addon-1.4.9-installer.exe / PersistenceFlow$EmployeeComparator.class (.txt) < prev    next >
Encoding:
Java Class File  |  2004-07-12  |  1.1 KB  |  23 lines

  1. package org.apache.cocoon.samples.flow.java;
  2.  
  3. import java.util.Comparator;
  4. import org.apache.cocoon.components.flow.java.Continuable;
  5. import org.apache.cocoon.ojb.samples.bean.Employee;
  6.  
  7. public class PersistenceFlow$EmployeeComparator implements Comparator, Continuable {
  8.    // $FF: synthetic field
  9.    private final PersistenceFlow this$0;
  10.  
  11.    public PersistenceFlow$EmployeeComparator(PersistenceFlow this$0) {
  12.       this.this$0 = this$0;
  13.    }
  14.  
  15.    public int compare(Object o1, Object o2) {
  16.       return ((Employee)o1).getId() - ((Employee)o2).getId();
  17.    }
  18.  
  19.    public boolean equals(Object obj) {
  20.       return true;
  21.    }
  22. }
  23.