Top Description Fields Constructors Methods
com.sun.mail.imap

public final Class SortTerm

extends Object
Class Inheritance

A particular sort criteria, as defined by RFC 5256. Sort criteria are used with the getSortedMessages method. Multiple sort criteria are specified in an array with the order in the array specifying the order in which the sort criteria are applied.
Since
JavaMail 1.4.4

Field Summary

Modifier and TypeField and Description
public static final SortTerm
ARRIVAL

Sort by message arrival date and time.

public static final SortTerm
CC

Sort by email address of first Cc recipient.

public static final SortTerm
DATE

Sort by sent date and time.

public static final SortTerm
FROM

Sort by first From email address.

public static final SortTerm
REVERSE

Reverse the sort order of the following item.

public static final SortTerm
SIZE

Sort by the message size.

public static final SortTerm
SUBJECT

Sort by the base subject text.

private String
public static final SortTerm
TO

Sort by email address of first To recipient.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

ARRIVALback to summary
public static final SortTerm ARRIVAL

Sort by message arrival date and time.

CCback to summary
public static final SortTerm CC

Sort by email address of first Cc recipient.

DATEback to summary
public static final SortTerm DATE

Sort by sent date and time.

FROMback to summary
public static final SortTerm FROM

Sort by first From email address.

REVERSEback to summary
public static final SortTerm REVERSE

Reverse the sort order of the following item.

SIZEback to summary
public static final SortTerm SIZE

Sort by the message size.

SUBJECTback to summary
public static final SortTerm SUBJECT

Sort by the base subject text. Note that the "base subject" is defined by RFC 5256 and doesn't include items such as "Re:" in the subject header.

termback to summary
private String term
TOback to summary
public static final SortTerm TO

Sort by email address of first To recipient.

Constructor Detail

SortTermback to summary
private SortTerm(String term)

Method Detail

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override