org.apache.james.mailbox
Class SearchQuery.DateOperator

java.lang.Object
  extended by org.apache.james.mailbox.SearchQuery.DateOperator
All Implemented Interfaces:
SearchQuery.HeaderOperator, SearchQuery.Operator
Enclosing class:
SearchQuery

public static final class SearchQuery.DateOperator
extends java.lang.Object
implements SearchQuery.HeaderOperator

Operates on a date.


Field Summary
static int AFTER
           
static int BEFORE
           
static int ON
           
 
Constructor Summary
SearchQuery.DateOperator(SearchQuery.DateComparator type, int day, int month, int year)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 int getDay()
          Gets the day-of-the-month.
 int getMonth()
          Gets the month-of-the-year.
 SearchQuery.DateComparator getType()
          Gets the operator type.
 int getYear()
          Gets the year.
 int hashCode()
           
 java.lang.String toString()
          Constructs a String with all attributes in name = value format.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

BEFORE

public static final int BEFORE
See Also:
Constant Field Values

AFTER

public static final int AFTER
See Also:
Constant Field Values

ON

public static final int ON
See Also:
Constant Field Values
Constructor Detail

SearchQuery.DateOperator

public SearchQuery.DateOperator(SearchQuery.DateComparator type,
                                int day,
                                int month,
                                int year)
Method Detail

getDay

public final int getDay()
Gets the day-of-the-month.

Returns:
the day, one based

getMonth

public final int getMonth()
Gets the month-of-the-year.

Returns:
the month, one based

getType

public final SearchQuery.DateComparator getType()
Gets the operator type.

Returns:
the type, either BEFORE, AFTER or ON

getYear

public final int getYear()
Gets the year.

Returns:
the year

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object
See Also:
Object.hashCode()

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object
See Also:
Object.equals(java.lang.Object)

toString

public java.lang.String toString()
Constructs a String with all attributes in name = value format.

Overrides:
toString in class java.lang.Object
Returns:
a String representation of this object.


Copyright © 2002-2010 The Apache Software Foundation. All Rights Reserved.