Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.jasig.portal.layout.dlm
Class FragmentComparator

    java.lang.Object
      org.jasig.portal.layout.dlm.FragmentComparator

All Implemented Interfaces:
  java.util.Comparator

    public class FragmentComparator

extends java.lang.Object
implements java.util.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: 1.3 $ $Date: 2005/05/02 03:07:29 $

Field Summary
`static java.lang.String` | `RCS_ID`

Constructor Summary
`FragmentComparator()`

Method Summary
`int` | `compare(java.lang.Object obj1, java.lang.Object obj2)`
`boolean` | `equals(java.lang.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 java.lang.String RCS_ID

See Also:
  Constant Field Values

Constructor Detail

### FragmentComparator

    public FragmentComparator()

Method Detail

### compare

    public int compare(java.lang.Object obj1,
                       java.lang.Object obj2)

  Specified by:
    `compare` in interface `java.util.Comparator`

### equals

    public boolean equals(java.lang.Object obj)

  Specified by:
    `equals` in interface `java.util.Comparator`
  Overrides:
    `equals` in class `java.lang.Object`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD