All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class cube.database.IdList

java.lang.Object
   |
   +----cube.database.IdList

public class IdList
extends Object
An IdList is a data type for a column in a database.

For more information on the cube see the cube Overview.
Copyright © 1997 Curtis E. Dyreson. All rights reserved. Please be aware of the Licence and Version.

See Also:
Id, Tuple

Constructor Index

 o IdList(byte[])
Construct a list from a byte array
 o IdList(Id[])
Construct a list from an array of Ids

Method Index

 o enumerate()
Return an enumeration of the elements in the list.
 o equals(Object)
IdLists can be used in HashTables.
 o hashCode()
The hashCode for this is the sum of the hashCodes for all the Ids in it
 o image()
Convert the value to a nice String image for dumping
 o toBytes()
Convert to a byte array
 o toIdArray()
Retrieve an array of Ids that is the sequence

Constructors

 o IdList
  public IdList(Id value[])
Construct a list from an array of Ids

Parameters:
value - - An array of Ids, the array is not cloned for this constructor!
 o IdList
  public IdList(byte b[])
Construct a list from a byte array

Parameters:
b - - a byte array, the byte array is cloned

Methods

 o hashCode
  public int hashCode()
The hashCode for this is the sum of the hashCodes for all the Ids in it

Overrides:
hashCode in class Object
 o equals
  public boolean equals(Object obj)
IdLists can be used in HashTables.

Parameters:
obj - - It must be an IdList or it will die a horrible death.
Overrides:
equals in class Object
 o image
  public String image()
Convert the value to a nice String image for dumping

 o enumerate
  public Enumeration enumerate()
Return an enumeration of the elements in the list.

 o toIdArray
  public Id[] toIdArray()
Retrieve an array of Ids that is the sequence

 o toBytes
  public byte[] toBytes()
Convert to a byte array


All Packages  Class Hierarchy  This Package  Previous  Next  Index