rice.p2p.splitstream
Class StripeId
java.lang.Object
rice.p2p.splitstream.StripeId
public class StripeId
- extends Object
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
- Version:
- $Id: StripeId.java 3613 2007-02-15 14:45:14Z jstewart $
- Author:
- Ansley Post, Alan Mislove
|
Field Summary |
protected Id |
id
This stripe's Id |
|
Constructor Summary |
StripeId(Id id)
Constructor that takes in a nodeId and makes a StripeId |
id
protected Id id
- This stripe's Id
StripeId
public StripeId(Id id)
- Constructor that takes in a nodeId and makes a StripeId
- Parameters:
id - The Id for this stripe
getId
public Id getId()
- Gets the Id attribute of the StripeId object
- Returns:
- The Id value
toString
public String toString()
- Overrides:
toString in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
equals
public boolean equals(Object o)
- Overrides:
equals in class Object
Copyright © 2010. All Rights Reserved.