rice.p2p.past.gc
Class GCPastMetadata
java.lang.Object
rice.p2p.past.gc.GCPastMetadata
- All Implemented Interfaces:
- Serializable, Comparable<GCPastMetadata>
public class GCPastMetadata
- extends Object
- implements Serializable, Comparable<GCPastMetadata>
- Version:
- $Id: GCPastMetadata.java 4654 2009-01-08 16:33:07Z jeffh $
- Author:
- Peter Druschel
- See Also:
- Serialized Form
expiration
protected long expiration
GCPastMetadata
public GCPastMetadata(long expiration)
- Constructor.
- Parameters:
msg - The string representing the error.
getExpiration
public long getExpiration()
- Method which returns the expiration time
- Returns:
- The contained expiration time
setExpiration
public GCPastMetadata setExpiration(long expiration)
- Method which sets the expiration time
- Parameters:
The - new expiration time
equals
public boolean equals(Object o)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
compareTo
public int compareTo(GCPastMetadata other)
- Comparable, returns -1 if less, 0 if equal, and 1 if greater
- Specified by:
compareTo in interface Comparable<GCPastMetadata>
- Parameters:
other - The object ot compare to
- Returns:
- the comparison
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2010. All Rights Reserved.