com.jalios.jcms.mail
Class MailMessage.SentDateComparator<T extends MailMessage>

java.lang.Object
  extended by com.jalios.jstore.BasicStorable.CdateComparator<T>
      extended by com.jalios.jcms.mail.MailMessage.SentDateComparator<T>
Type Parameters:
T - subclass of MailMessage
All Implemented Interfaces:
Comparator<T>
Enclosing class:
MailMessage

public static class MailMessage.SentDateComparator<T extends MailMessage>
extends BasicStorable.CdateComparator<T>

Compares two MailMessage using their SentDate in descending order (newest date first). Default to Cdate Comparison if the 2 SentDate are the equals. Note: this comparator imposes orderings that are inconsistent with equals.

See Also:
BasicStorable.CdateComparator

Constructor Summary
MailMessage.SentDateComparator()
           
 
Method Summary
 int compare(T p1, T p2)
           
 
Methods inherited from class com.jalios.jstore.BasicStorable.CdateComparator
compareDate
 
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

MailMessage.SentDateComparator

public MailMessage.SentDateComparator()
Method Detail

compare

public int compare(T p1,
                   T p2)
Specified by:
compare in interface Comparator<T extends MailMessage>
Overrides:
compare in class BasicStorable.CdateComparator<T extends MailMessage>


Copyright © 2001-2010 Jalios SA. All Rights Reserved.