com.cc.framework.util
Class PropertyComparator

java.lang.Object
  extended bycom.cc.framework.util.PropertyComparator
All Implemented Interfaces:
java.util.Comparator

public class PropertyComparator
extends java.lang.Object
implements java.util.Comparator

Compares a java property

Version:
$Revision: 1.8 $
Author:
Harald Schulz

Field Summary
private  SortOrder direction
          The sort order
private  java.lang.String property
          Property to compare
 
Constructor Summary
PropertyComparator(java.lang.String property, SortOrder direction)
          Constructor
 
Method Summary
 int compare(java.lang.Object o1, java.lang.Object o2)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Field Detail

property

private java.lang.String property
Property to compare


direction

private SortOrder direction
The sort order

Constructor Detail

PropertyComparator

public PropertyComparator(java.lang.String property,
                          SortOrder direction)
Constructor

Parameters:
property - Property to Sort
direction - SortDirection
Method Detail

compare

public int compare(java.lang.Object o1,
                   java.lang.Object o2)
Specified by:
compare in interface java.util.Comparator
See Also:
Comparator.compare(java.lang.Object, java.lang.Object)


Copyright © 2000-2005 SCC Informationssysteme GmbH. All Rights Reserved.