All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class gpsys.TypeToFunctionsTable

java.lang.Object
   |
   +----gpsys.TypeToFunctionsTable

public class TypeToFunctionsTable
extends Object
implements Serializable
A Table that maps a given Type to an array of Functions returning that type.

Version:
1.1, 30th June '97
Author:
Adil Qureshi
Department of Computer Science,
University College London,
Gower St,
London WC1E 6BT,
UK.

Constructor Index

 o TypeToFunctionsTable(int)
Creates a table of the specified initial capacity.

Method Index

 o get(Type)
Get all the Functions that return the specified type.
 o put(Type, Function[])
Put the specified Functions array in the table.

Constructors

 o TypeToFunctionsTable
 public TypeToFunctionsTable(int initialCapacity)
Creates a table of the specified initial capacity. The table is automatically increased in size if the number of entries exceed 50% of the initial capacity.

Parameters:
initialCapacity - The initial capacity of the table.

Methods

 o get
 public final Function[] get(Type t)
Get all the Functions that return the specified type.

Parameters:
t - The return type of the Functions.
 o put
 public final void put(Type t,
                       Function functions[])
Put the specified Functions array in the table. The functions all return the type t which is the key to be used for retrieval via get().

Parameters:
t - The return type of the Functions.
functions - The array of functions return the above type.

All Packages  Class Hierarchy  This Package  Previous  Next  Index