org.jasig.portal.layout.dlm
Class FragmentComparator

java.lang.Object
  extended by org.jasig.portal.layout.dlm.FragmentComparator
All Implemented Interfaces:
Comparator

public class FragmentComparator
extends Object
implements Comparator

A comparator of fragment objects that sorts first by precedence value with highest number being higher and if equal it then sorts by fragment index with the lowest number having highest precedence since it is an indication of the fragments location within the config file. For those with equal precedence the one defined first when loading the file should take precedence.

Since:
uPortal 2.5
Version:
$Revision: 19776 $ $Date: 2010-01-14 16:17:21 -0600 (Thu, 14 Jan 2010) $

Field Summary
static String RCS_ID
           
 
Constructor Summary
FragmentComparator()
           
 
Method Summary
 int compare(Object obj1, Object obj2)
           
 boolean equals(Object obj)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RCS_ID

public static final String RCS_ID
See Also:
Constant Field Values
Constructor Detail

FragmentComparator

public FragmentComparator()
Method Detail

compare

public int compare(Object obj1,
                   Object obj2)
Specified by:
compare in interface Comparator

equals

public boolean equals(Object obj)
Specified by:
equals in interface Comparator
Overrides:
equals in class Object


Copyright © 2010 Jasig. All Rights Reserved.