org.abstracthorizon.mercury.maildir.uid
Class UID

java.lang.Object
  extended by org.abstracthorizon.mercury.maildir.uid.UID

public class UID
extends Object

This class represents UID number

Author:
Daniel Sendula

Field Summary
protected  long uid
          Uid number
 
Constructor Summary
UID(long uid)
          Constructor
 
Method Summary
 boolean equals(Object o)
          Compares two UID objects
 long getUID()
          Returns uid number
 int hashCode()
          Returns uid converted to integer as hash code.
 String toString()
          Returns uid as long converted to string
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

uid

protected long uid
Uid number

Constructor Detail

UID

public UID(long uid)
Constructor

Parameters:
uid - uid
Method Detail

getUID

public long getUID()
Returns uid number

Returns:
uid number

hashCode

public int hashCode()
Returns uid converted to integer as hash code.

Overrides:
hashCode in class Object
Returns:
uid converted to integer as hash code.

equals

public boolean equals(Object o)
Compares two UID objects

Overrides:
equals in class Object
Parameters:
o - object to be compared with
Returns:
true if uids are the same

toString

public String toString()
Returns uid as long converted to string

Overrides:
toString in class Object
Returns:
uid as long converted to string


Copyright © 2005-2009 Abstract Horizon. All Rights Reserved.