ostore.util
Class QSArray

java.lang.Object
  |
  +--ostore.util.QSArray
All Implemented Interfaces:
Cloneable, QuickSerializable

public class QSArray
extends Object
implements Cloneable, QuickSerializable

Version:
$Id: QSArray.java,v 1.21 2002/07/29 18:48:54 geels Exp $
Author:
Hakim Weatherspoon

Constructor Summary
QSArray()
           
QSArray(InputBuffer buffer)
           
QSArray(int size)
           
QSArray(QuickSerializable obj)
           
QSArray(QuickSerializable[] objs)
           
QSArray(Vector objs)
           
 
Method Summary
 void append(QuickSerializable obj)
           
 Object clone()
           
 boolean equals(Object other)
           
 QuickSerializable get(int index)
           
 QuickSerializable[] getQSArray()
           
 int hashCode()
           
 int length()
           
 void serialize(OutputBuffer buffer)
          Add the object to the buffer.
 QuickSerializable set(int index, QuickSerializable obj)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

QSArray

public QSArray()

QSArray

public QSArray(int size)

QSArray

public QSArray(QuickSerializable obj)

QSArray

public QSArray(QuickSerializable[] objs)

QSArray

public QSArray(Vector objs)

QSArray

public QSArray(InputBuffer buffer)
        throws QSException
Method Detail

length

public int length()

getQSArray

public QuickSerializable[] getQSArray()

get

public QuickSerializable get(int index)

set

public QuickSerializable set(int index,
                             QuickSerializable obj)

append

public void append(QuickSerializable obj)

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

clone

public Object clone()
Overrides:
clone in class Object

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object