public final class Lease extends java.lang.Object implements ISerializable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ABBREVIATION
The abbreviation used for this class during serialization.
|
Constructor and Description |
---|
Lease()
Creates a new uninitialized lease.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o)
Determines whether this lease is structurally equivalent
to the specified object.
|
SystemID |
getCreator()
Returns the creator system of the lease.
|
ObjectID |
getIdentifier()
Returns the identifier of the lease.
|
long |
getTimeout()
Returns the timeout period of the lease.
|
int |
hashCode()
Returns a content-based hashcode for the lease.
|
void |
readObject(IObjectInput input)
Deserializes the lease from the given input.
|
java.lang.String |
toString()
Returns a human readable string representation of the lease.
|
void |
writeObject(IObjectOutput output)
Serializes the lease to the specified output.
|
public static final java.lang.String ABBREVIATION
public Lease()
public ObjectID getIdentifier()
public SystemID getCreator()
public long getTimeout()
public void readObject(IObjectInput input) throws java.io.IOException
readObject
in interface ISerializable
input
- The input to read from.java.io.IOException
- Thrown by the underlying input.public void writeObject(IObjectOutput output) throws java.io.IOException
writeObject
in interface ISerializable
output
- The output to write to.java.io.IOException
- Thrown by the underlying output.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