nl.gx.webmanager.authorization.impl
Class UserComparator

java.lang.Object
  extended by nl.gx.webmanager.authorization.impl.UserComparator
All Implemented Interfaces:
java.util.Comparator<User>

public class UserComparator
extends java.lang.Object
implements java.util.Comparator<User>

Comparison function for the User class.

Author:
arjans

Constructor Summary
UserComparator()
          Default constructur.
UserComparator(java.lang.String compareProperty, boolean ascending)
          Custom constructor which makes it possible to set the property to compare by and the direction in which a User it is compared to another User.
 
Method Summary
 int compare(User user1, User user2)
           
 
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
 

Constructor Detail

UserComparator

public UserComparator()
Default constructur.


UserComparator

public UserComparator(java.lang.String compareProperty,
                      boolean ascending)
Custom constructor which makes it possible to set the property to compare by and the direction in which a User it is compared to another User.

Parameters:
compareProperty - Property to compare by
ascending - Direction in which a User it is compared to another User
Method Detail

compare

public int compare(User user1,
                   User user2)
Specified by:
compare in interface java.util.Comparator<User>


Copyright © 2007-2011 GX Software BV. All Rights Reserved.