com.primus.searchcommon
Class ConstantID

java.lang.Object
  extended by com.primus.searchcommon.ConstantID
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ConstantContactID, ConstantFeedbackID, ConstantLoginSessionID, ConstantQueryID, ConstantSearchSessionID, ConstantSiteID, ConstantTopicID

public class ConstantID
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Constructor Summary
ConstantID(long id)
           
ConstantID(java.lang.Long id)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
          Compares this ConstantID to another.
 int hashCode()
          Compute hash code for this ConstantID.
 int toInt()
          Return Long representation of this ConstantID.
 java.lang.Long toLong()
          Return Long representation of this ConstantID.
 java.lang.String toString()
          Return string representation of this ConstantID.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConstantID

public ConstantID(long id)

ConstantID

public ConstantID(java.lang.Long id)
Method Detail

equals

public boolean equals(java.lang.Object obj)
Compares this ConstantID to another.

Overrides:
equals in class java.lang.Object
Parameters:
obj - Object to compare this ConstantID to
Returns:
true if the argument is an instance or derived from ConstantID AND one of the compared objects is exactly ConstantID or they both have exactly the same type AND both have the equal number

hashCode

public int hashCode()
Compute hash code for this ConstantID.

Overrides:
hashCode in class java.lang.Object
Returns:
The hash code for this ConstantID.

toString

public java.lang.String toString()
Return string representation of this ConstantID.

Overrides:
toString in class java.lang.Object
Returns:
The string representation of this ConstantID.

toLong

public java.lang.Long toLong()
Return Long representation of this ConstantID.

Returns:
The Long representation of this ConstantID.

toInt

public int toInt()
Return Long representation of this ConstantID.

Returns:
The Long representation of this ConstantID.