org.jasig.portal.layout.dlm
Class FragmentComparator
java.lang.Object
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) $
RCS_ID
public static final String RCS_ID
- See Also:
- Constant Field Values
FragmentComparator
public FragmentComparator()
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.