ostore.introspect
Class RecordEventReq.EventId

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

public static class RecordEventReq.EventId
extends Object
implements QuickSerializable, Comparable

Simple class to identify event types. Identifies event types with an integer.

Version:
$Id: RecordEventReq.java,v 1.2 2003/04/03 02:03:45 jeffpang Exp $
Author:
Jeff Pang

Constructor Summary
RecordEventReq.EventId(InputBuffer buffer)
           
RecordEventReq.EventId(int code)
          New eventid identified by code
RecordEventReq.EventId(String fourcc)
          New eventid identified by fourcc.
 
Method Summary
 int compareTo(Object other)
           
 boolean equals(Object other)
           
 int hashCode()
           
 void serialize(OutputBuffer buffer)
          Add the object to the buffer.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RecordEventReq.EventId

public RecordEventReq.EventId(int code)
New eventid identified by code


RecordEventReq.EventId

public RecordEventReq.EventId(String fourcc)
New eventid identified by fourcc. This must be a 4-character string.


RecordEventReq.EventId

public RecordEventReq.EventId(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

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

compareTo

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

toString

public String toString()
Overrides:
toString in class Object