demo.dynamic
Class NullTag

java.lang.Object
  |
  +--demo.dynamic.NullTag
All Implemented Interfaces:
DDTag, QuickSerializable

public class NullTag
extends Object
implements DDTag

NullTag is the DDTag for objects that otherwise do not have an identifier. This class replaces setting ttag==null.

Version:
$Id: NullTag.java,v 1.1 2004/05/03 09:03:28 hweather Exp $
Author:
Hakim Weatherspoon
See Also:
NullTagQuery, DDTag

Constructor Summary
NullTag()
          Constructor: Creates a new NullTag.
NullTag(InputBuffer buffer)
          Constructs a NullTag from its serialized form.
 
Method Summary
 boolean equals(Object other)
          Compares this NullTag with another tag, and returns true iff they are the same type of tag.
 int hashCode()
          Calculates a Java hash code for this NullTag object (by returning its type_code)
 void serialize(OutputBuffer buffer)
          Specified by ostore.util.QuickSerializable
 String toString()
          Specified by java.lang.Object
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NullTag

public NullTag()
Constructor: Creates a new NullTag.


NullTag

public NullTag(InputBuffer buffer)
        throws QSException
Constructs a NullTag from its serialized form.

Parameters:
buffer - serialized form of object.
Method Detail

serialize

public void serialize(OutputBuffer buffer)
Specified by ostore.util.QuickSerializable

Specified by:
serialize in interface QuickSerializable

equals

public boolean equals(Object other)
Compares this NullTag with another tag, and returns true iff they are the same type of tag.

Overrides:
equals in class Object
Parameters:
other - the object with which to compare this NullTag.
Returns:
true iff this and other are instanceof NullTag.

hashCode

public int hashCode()
Calculates a Java hash code for this NullTag object (by returning its type_code)

Overrides:
hashCode in class Object
Returns:
the Java hash code for this NullTag.

toString

public String toString()
Specified by java.lang.Object

Overrides:
toString in class Object