ostore.introspect
Class Time.NeverTime

java.lang.Object
  |
  +--ostore.introspect.Time.NeverTime
All Implemented Interfaces:
Comparable, QuickSerializable, Time
Enclosing class:
Time

public static final class Time.NeverTime
extends Object
implements Time

Time that is before all other time.

Version:
$Id: Time.java,v 1.2 2003/03/15 01:35:39 jeffpang Exp $
Author:
Jeff Pang

Nested Class Summary
 
Nested classes inherited from class ostore.introspect.Time
Time.NeverTime
 
Field Summary
 
Fields inherited from interface ostore.introspect.Time
NEVER
 
Constructor Summary
Time.NeverTime()
           
Time.NeverTime(InputBuffer buffer)
           
 
Method Summary
 int compareTo(Object other)
           
 Distance difference(Time to)
          Distance from this Time to to time.
 boolean equals(Object other)
           
 void serialize(OutputBuffer buffer)
          Add the object to the buffer.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Time.NeverTime

public Time.NeverTime()

Time.NeverTime

public Time.NeverTime(InputBuffer buffer)
               throws QSException
Method Detail

serialize

public void serialize(OutputBuffer buffer)
Description copied from interface: QuickSerializable
Add the object to the buffer.

Specified by:
serialize in interface QuickSerializable
Parameters:
buffer - the output buffer to add the object to

compareTo

public int compareTo(Object other)
Specified by:
compareTo in interface Comparable

equals

public boolean equals(Object other)
Overrides:
equals in class Object

difference

public Distance difference(Time to)
Description copied from interface: Time
Distance from this Time to to time.

Specified by:
difference in interface Time
Parameters:
to - next time
Returns:
|to - this| distance

toString

public String toString()
Overrides:
toString in class Object