|
Rice Pastry API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object rice.p2p.scribe.Topic
public class Topic
Field Summary | |
---|---|
protected Id |
id
The Id to which this topic is mapped |
Constructor Summary | |
---|---|
Topic(Id id)
Constructor which takes an Id for this topic |
|
Topic(IdFactory factory,
java.lang.String name)
Constructor which takes a name for this topic |
|
Topic(InputBuffer buf,
Endpoint endpoint)
|
Method Summary | |
---|---|
int |
compareTo(Topic that)
|
boolean |
equals(java.lang.Object o)
Returns whether this is equal to o or not |
Id |
getId()
Returns the Id to which this topic is mapped |
static Id |
getId(IdFactory factory,
java.lang.String name)
Returns the Id to which the string is mapped |
int |
hashCode()
Returns the hashCode for this topic |
void |
serialize(OutputBuffer buf)
|
java.lang.String |
toString()
Returns a String representation of this topic |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected Id id
Constructor Detail |
---|
public Topic(Id id)
id
- The Id for this topicpublic Topic(IdFactory factory, java.lang.String name)
factory
- The factory to use when creating the idname
- The name for this topicpublic Topic(InputBuffer buf, Endpoint endpoint) throws java.io.IOException
java.io.IOException
Method Detail |
---|
public Id getId()
public static Id getId(IdFactory factory, java.lang.String name)
factory
- The factory to use when creating the idname
- The string to map
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- The object to compare to
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public void serialize(OutputBuffer buf) throws java.io.IOException
java.io.IOException
public int compareTo(Topic that)
compareTo
in interface java.lang.Comparable<Topic>
|
Rice Pastry API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |