Rice Pastry API

rice.p2p.past.gc
Class GCPastMetadata

java.lang.Object
  extended by rice.p2p.past.gc.GCPastMetadata
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<GCPastMetadata>

public class GCPastMetadata
extends java.lang.Object
implements java.io.Serializable, java.lang.Comparable<GCPastMetadata>

Version:
$Id: GCPastMetadata.java 4654 2009-01-08 16:33:07Z jeffh $
Author:
Peter Druschel
See Also:
Serialized Form

Field Summary
protected  long expiration
           
 
Constructor Summary
GCPastMetadata(long expiration)
          Constructor.
 
Method Summary
 int compareTo(GCPastMetadata other)
          Comparable, returns -1 if less, 0 if equal, and 1 if greater
 boolean equals(java.lang.Object o)
           
 long getExpiration()
          Method which returns the expiration time
 int hashCode()
           
 GCPastMetadata setExpiration(long expiration)
          Method which sets the expiration time
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

expiration

protected long expiration
Constructor Detail

GCPastMetadata

public GCPastMetadata(long expiration)
Constructor.

Parameters:
msg - The string representing the error.
Method Detail

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(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

compareTo

public int compareTo(GCPastMetadata other)
Comparable, returns -1 if less, 0 if equal, and 1 if greater

Specified by:
compareTo in interface java.lang.Comparable<GCPastMetadata>
Parameters:
other - The object ot compare to
Returns:
the comparison

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

Rice Pastry API

Copyright © 2001-2005 - Rice Pastry.


Imprint-Dataprotection