DateComparisonField

Inheritance: java.lang.Object, com.aspose.email.QueryField, com.aspose.email.ComparisonField

public final class DateComparisonField extends ComparisonField

Represents the date search field.

Methods

MethodDescription
before(Date value)Indicates that the date in message must be earlier than the specified date.
before(Date value, int comparisonType)Indicates that the date in message must be earlier than the specified date.
beforeOrEqual(Date value)Indicates that the date in message must be earlier or equel to the specified date.
beforeOrEqual(Date value, int comparisonType)Indicates that the date in message must be earlier or equel to the specified date.
equals(Object arg0)
getClass()
greater(Date value)Indicates that date in message must be later than the specified date.
greater(Date value, int comparisonType)Indicates that date in message must be later than the specified date.
hashCode()
notOn(Date value)Indicates that the date in message must not be in the specified date.
notOn(Date value, int comparisonType)Indicates that the date in message must not be in the specified date.
notify()
notifyAll()
on(Date value)Indicates that the date in message must be within the specified date.
on(Date value, int comparisonType)Indicates that the date in message must be within the specified date.
orderBy(boolean ascending)Sets value which indicates if client uses ascending or descending sorting on the Field.
since(Date value)Indicates that date in message must be within or later than the specified date.
since(Date value, int comparisonType)Indicates that date in message must be within or later than the specified date.
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

before(Date value)

public final MailQuery before(Date value)

Indicates that the date in message must be earlier than the specified date.

Parameters:

ParameterTypeDescription
valuejava.util.DateThe value.

Returns: MailQuery - MailQuery that represents search query (one searching criterion).

before(Date value, int comparisonType)

public final MailQuery before(Date value, int comparisonType)

Indicates that the date in message must be earlier than the specified date.

Parameters:

ParameterTypeDescription
valuejava.util.DateThe value.
comparisonTypeintSpecifies a type of comparison

Returns: MailQuery - MailQuery that represents search query (one searching criterion).

beforeOrEqual(Date value)

public final MailQuery beforeOrEqual(Date value)

Indicates that the date in message must be earlier or equel to the specified date.

Parameters:

ParameterTypeDescription
valuejava.util.DateThe value.

Returns: MailQuery - MailQuery that represents search query (one searching criterion).

beforeOrEqual(Date value, int comparisonType)

public final MailQuery beforeOrEqual(Date value, int comparisonType)

Indicates that the date in message must be earlier or equel to the specified date.

Parameters:

ParameterTypeDescription
valuejava.util.DateThe value.
comparisonTypeintSpecifies a type of comparison

Returns: MailQuery - MailQuery that represents search query (one searching criterion).

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

greater(Date value)

public final MailQuery greater(Date value)

Indicates that date in message must be later than the specified date.

Parameters:

ParameterTypeDescription
valuejava.util.DateThe value.

Returns: MailQuery - MailQuery that represents search query (one searching criterion).

greater(Date value, int comparisonType)

public final MailQuery greater(Date value, int comparisonType)

Indicates that date in message must be later than the specified date.

Parameters:

ParameterTypeDescription
valuejava.util.DateThe value.
comparisonTypeintSpecifies a type of comparison

Returns: MailQuery - MailQuery that represents search query (one searching criterion).

hashCode()

public native int hashCode()

Returns: int

notOn(Date value)

public final MailQuery notOn(Date value)

Indicates that the date in message must not be in the specified date.

Parameters:

ParameterTypeDescription
valuejava.util.DateThe value.

Returns: MailQuery - MailQuery that represents search query (one searching criterion).

notOn(Date value, int comparisonType)

public final MailQuery notOn(Date value, int comparisonType)

Indicates that the date in message must not be in the specified date.

Parameters:

ParameterTypeDescription
valuejava.util.DateThe value.
comparisonTypeintSpecifies a type of comparison

Returns: MailQuery - MailQuery that represents search query (one searching criterion).

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

on(Date value)

public final MailQuery on(Date value)

Indicates that the date in message must be within the specified date.

Parameters:

ParameterTypeDescription
valuejava.util.DateThe value.

Returns: MailQuery - MailQuery that represents search query (one searching criterion).

on(Date value, int comparisonType)

public final MailQuery on(Date value, int comparisonType)

Indicates that the date in message must be within the specified date.

Parameters:

ParameterTypeDescription
valuejava.util.DateThe value.
comparisonTypeintSpecifies a type of comparison

Returns: MailQuery - MailQuery that represents search query (one searching criterion).

orderBy(boolean ascending)

public final void orderBy(boolean ascending)

Sets value which indicates if client uses ascending or descending sorting on the Field.

Parameters:

ParameterTypeDescription
ascendingbooleanSet true if you want to use ascending sorting, otherwise set false.

since(Date value)

public final MailQuery since(Date value)

Indicates that date in message must be within or later than the specified date.

Parameters:

ParameterTypeDescription
valuejava.util.DateThe value.

Returns: MailQuery - MailQuery that represents search query (one searching criterion).

since(Date value, int comparisonType)

public final MailQuery since(Date value, int comparisonType)

Indicates that date in message must be within or later than the specified date.

Parameters:

ParameterTypeDescription
valuejava.util.DateThe value.
comparisonTypeintSpecifies a type of comparison

Returns: MailQuery - MailQuery that represents search query (one searching criterion).

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int