Package com.sun.mail.gimap
Class LongTerm
- java.lang.Object
-
- javax.mail.search.SearchTerm
-
- com.sun.mail.gimap.LongTerm
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
GmailMsgIdTerm
,GmailThrIdTerm
abstract class LongTerm extends SearchTerm
This class implements a long integer search term.- Since:
- JavaMail 1.4.6
-
-
Field Summary
Fields Modifier and Type Field Description protected long
number
The number.private static long
serialVersionUID
-
Constructor Summary
Constructors Modifier Constructor Description protected
LongTerm(long number)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
Equality comparison.long
getNumber()
Return the number to compare with.int
hashCode()
Compute a hashCode for this object.protected boolean
match(long i)
-
Methods inherited from class javax.mail.search.SearchTerm
match
-
-
-
-
Field Detail
-
number
protected long number
The number.
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Method Detail
-
getNumber
public long getNumber()
Return the number to compare with.- Returns:
- the number
-
match
protected boolean match(long i)
-
equals
public boolean equals(java.lang.Object obj)
Equality comparison.- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
Compute a hashCode for this object.- Overrides:
hashCode
in classjava.lang.Object
-
-