|
Rice Pastry API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrice.p2p.splitstream.StripeId
public class StripeId
This class wraps the nodeId object so we can use type checking and allow more readable and understandable code. All it does is subclass the nodeId and provide a constructor that allows the wrapping of a NodeId object to create a concrete subclass
Field Summary | |
---|---|
protected Id |
id
This stripe's Id |
Constructor Summary | |
---|---|
StripeId(Id id)
Constructor that takes in a nodeId and makes a StripeId |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
Compares this to the parameter. |
Id |
getId()
Gets the Id attribute of the StripeId object |
int |
hashCode()
Computes a hash value for this object. |
java.lang.String |
toString()
Converts to a String representation of the object. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected Id id
Constructor Detail |
---|
public StripeId(Id id)
id
- The Id for this stripeMethod Detail |
---|
public Id getId()
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- the reference object with which to compare.
|
Rice Pastry API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |