ostore.dataobj
Class All

java.lang.Object
  |
  +--ostore.dataobj.All
All Implemented Interfaces:
QuickSerializable, Selection

public class All
extends Object
implements Selection

A Selection describing the entire DataObject.

TODO: Add an upper bound on the amount of data to return?

Version:
$Id: All.java,v 1.13 2002/07/21 20:57:34 srhea Exp $
Author:
Dennis Geels

Constructor Summary
All()
          Creates an All
All(InputBuffer buffer)
          Creates an All from its QuickSerializable form.
 
Method Summary
 boolean contains(Selection sel)
          Tests for inclusion with other Selection.
 boolean equals(Object obj)
           
 int hashCode()
           
 void serialize(OutputBuffer buffer)
          Add the object to the buffer.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

All

public All()
Creates an All


All

public All(InputBuffer buffer)
Creates an All from its QuickSerializable form.

Method Detail

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

contains

public boolean contains(Selection sel)
Description copied from interface: Selection
Tests for inclusion with other Selection. Iff a.contains(b) and b.contains(a), it should also be true that a.equals(b).

Specified by:
contains in interface Selection
Parameters:
sel - Another Selection.
Returns:
true iff this Selection describes a portion of a DataObject which includes the entire portion described by sel (independent of a specific DataObject).

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