Update of 
/var/cvs/contributions/didactor2/src/core/java/nl/didactor/component/users
In directory james.mmbase.org:/tmp/cvs-serv20496

Modified Files:
        PeopleComparator.java 
Log Message:
code conventions only, still, this is a horrible class


See also: 
http://cvs.mmbase.org/viewcvs/contributions/didactor2/src/core/java/nl/didactor/component/users


Index: PeopleComparator.java
===================================================================
RCS file: 
/var/cvs/contributions/didactor2/src/core/java/nl/didactor/component/users/PeopleComparator.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- PeopleComparator.java       1 Jul 2005 18:20:06 -0000       1.1
+++ PeopleComparator.java       20 Jun 2008 13:03:13 -0000      1.2
@@ -2,24 +2,22 @@
 
 import java.util.Comparator;
 
-public class PeopleComparator implements Comparator
-{
-   public PeopleComparator()
-   {
-   }
 
-   public int compare(Object ob1, Object ob2)
-   {
+/**
+ * lastname,firstname comparator for people
+ * @author azemskov
+ * @javadoc
+ */
+public class PeopleComparator implements Comparator {
+
+   public int compare(Object ob1, Object ob2)    {
       String[] arrstrObj1 = (String[]) ob1;
       String[] arrstrObj2 = (String[]) ob2;
 
       int iResult = arrstrObj1[1].compareTo(arrstrObj2[1]);
-      if (iResult != 0)
-      {
+      if (iResult != 0) {
          return iResult;
-      }
-      else
-      {
+      } else {
          return arrstrObj1[2].compareTo(arrstrObj2[2]);
       }
    }
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to