Jwma

dtw.webmail.util
Class MessageSortingUtil

java.lang.Object
  |
  +--dtw.webmail.util.MessageSortingUtil

public class MessageSortingUtil
extends java.lang.Object

Utility class providing Comparator's for sorting messages applying different criterias.

Version:
0.9.7 07/02/2003
Author:
Dieter Wimberger

Field Summary
static java.util.Comparator[] CRITERIA_COMPARATOR
          Defines the relation between a given criteria and a comparator.
static java.util.Comparator DATE_CHRONOLOGICAL
          Defines a Comparator that sorts the receive or sent date chronological (i.e.
static java.util.Comparator DATE_REVERSE_CHRONOLOGICAL
          Defines a Comparator that sorts the receive or sent date reverse to chronological (i.e.
static java.util.Comparator NUMBER_NUMERICAL
          Defines a Comparator that sorts the message number numerical (i.e.
static java.util.Comparator NUMBER_REVERSE_NUMERICAL
          Defines a Comparator that sorts the message number reverse numerical (i.e.
static java.util.Comparator RECEIVE_CHRONOLOGICAL
          Defines a Comparator that sorts the receive date chronological (i.e.
static java.util.Comparator RECEIVE_REVERSE_CHRONOLOGICAL
          Defines a Comparator that sorts the receive date reverse to chronological (i.e.
static java.util.Comparator RECEIVER_LEXOGRAPHICAL
          Defines a Comparator that sorts the receiver string lexographical.
static java.util.Comparator RECEIVER_REVERSE_LEXOGRAPHICAL
          Defines a Comparator that sorts the receiver string reverse lexographical.
static java.util.Comparator SEND_CHRONOLOGICAL
          Defines a Comparator that sorts the send date chronological (i.e.
static java.util.Comparator SEND_REVERSE_CHRONOLOGICAL
          Defines a Comparator that sorts the send date reverse to chronological (i.e.
static java.util.Comparator SENDER_LEXOGRAPHICAL
          Defines a Comparator that sorts the sender string lexographical.
static java.util.Comparator SENDER_REVERSE_LEXOGRAPHICAL
          Defines a Comparator that sorts the sender string reverse lexographical.
static java.util.Comparator WHO_LEXOGRAPHICAL
          Defines a Comparator that sorts the sender or receiver string lexographical.
static java.util.Comparator WHO_REVERSE_LEXOGRAPHICAL
          Defines a Comparator that sorts the sender or receiver string reverse lexographical.
 
Constructor Summary
MessageSortingUtil()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DATE_CHRONOLOGICAL

public static final java.util.Comparator DATE_CHRONOLOGICAL
Defines a Comparator that sorts the receive or sent date chronological (i.e. oldest first).


DATE_REVERSE_CHRONOLOGICAL

public static final java.util.Comparator DATE_REVERSE_CHRONOLOGICAL
Defines a Comparator that sorts the receive or sent date reverse to chronological (i.e. most recent first).


RECEIVE_CHRONOLOGICAL

public static final java.util.Comparator RECEIVE_CHRONOLOGICAL
Defines a Comparator that sorts the receive date chronological (i.e. oldest first).


RECEIVE_REVERSE_CHRONOLOGICAL

public static final java.util.Comparator RECEIVE_REVERSE_CHRONOLOGICAL
Defines a Comparator that sorts the receive date reverse to chronological (i.e. most recent first).


SEND_CHRONOLOGICAL

public static final java.util.Comparator SEND_CHRONOLOGICAL
Defines a Comparator that sorts the send date chronological (i.e. oldest first).


SEND_REVERSE_CHRONOLOGICAL

public static final java.util.Comparator SEND_REVERSE_CHRONOLOGICAL
Defines a Comparator that sorts the send date reverse to chronological (i.e. most recent first).


WHO_LEXOGRAPHICAL

public static final java.util.Comparator WHO_LEXOGRAPHICAL
Defines a Comparator that sorts the sender or receiver string lexographical.


WHO_REVERSE_LEXOGRAPHICAL

public static final java.util.Comparator WHO_REVERSE_LEXOGRAPHICAL
Defines a Comparator that sorts the sender or receiver string reverse lexographical.


SENDER_LEXOGRAPHICAL

public static final java.util.Comparator SENDER_LEXOGRAPHICAL
Defines a Comparator that sorts the sender string lexographical.


SENDER_REVERSE_LEXOGRAPHICAL

public static final java.util.Comparator SENDER_REVERSE_LEXOGRAPHICAL
Defines a Comparator that sorts the sender string reverse lexographical.


RECEIVER_LEXOGRAPHICAL

public static final java.util.Comparator RECEIVER_LEXOGRAPHICAL
Defines a Comparator that sorts the receiver string lexographical.


RECEIVER_REVERSE_LEXOGRAPHICAL

public static final java.util.Comparator RECEIVER_REVERSE_LEXOGRAPHICAL
Defines a Comparator that sorts the receiver string reverse lexographical.


NUMBER_NUMERICAL

public static final java.util.Comparator NUMBER_NUMERICAL
Defines a Comparator that sorts the message number numerical (i.e. lowest first).


NUMBER_REVERSE_NUMERICAL

public static final java.util.Comparator NUMBER_REVERSE_NUMERICAL
Defines a Comparator that sorts the message number reverse numerical (i.e. highest first).


CRITERIA_COMPARATOR

public static final java.util.Comparator[] CRITERIA_COMPARATOR
Defines the relation between a given criteria and a comparator.

Constructor Detail

MessageSortingUtil

public MessageSortingUtil()

Jwma

Copyright © 2000-2003 jwma team (All Rights Reserved.)