BEA Systems, Inc.

com.beasys.portal.ejb
Class PortletComparator

java.lang.Object
  |
  +--com.beasys.portal.ejb.PortletComparator

public class PortletComparator
extends java.lang.Object
implements com.sun.java.util.collections.Comparator

Comparator to sort Portlets by their row number


Constructor Summary
PortletComparator()
           
 
Method Summary
 int compare(java.lang.Object o1, java.lang.Object o2)
          Implements Comparator's compare method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortletComparator

public PortletComparator()
Method Detail

compare

public int compare(java.lang.Object o1,
                   java.lang.Object o2)
Implements Comparator's compare method. Returns -1 if the first string comes before the second, +1 if after. 0 is NOT returned if they happen at the same time UNLESS they are actually the same object.
Specified by:
compare in interface com.sun.java.util.collections.Comparator

BEA Systems, Inc.

Copyright © 2000 BEA Systems, Inc. All Rights Reserved