com.jivesoftware.forum.util
Class Identifier
java.lang.Object
com.jivesoftware.forum.util.Identifier
- All Implemented Interfaces:
- JiveObject
public class Identifier
- extends java.lang.Object
- implements JiveObject
Simple JiveObject implementation that only contains the object type and object id. This
is useful for just maintaining a simple reference to an object without having to hold onto
the whole object.
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
objectType
protected int objectType
objectID
protected long objectID
Identifier
public Identifier(JiveObject bean)
Identifier
public Identifier(int objectType,
long objectID)
getObjectType
public int getObjectType()
- Description copied from interface:
JiveObject
- Return the object type of the jive object.
- Specified by:
getObjectType
in interface JiveObject
- Returns:
- the object type of the jive object.
setObjectType
public void setObjectType(int objectType)
getID
public long getID()
- Description copied from interface:
JiveObject
- Retrieve the unique identifier for the jive object.
- Specified by:
getID
in interface JiveObject
- Returns:
- the unique identifier for the jive object.
setID
public void setID(long objectID)
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 1999-2006 Jive Software.