ilog.tgo.util
Class IltDistributedTable

java.lang.Object
  extended by java.util.Dictionary
      extended by ilog.tgo.util.IltDistributedTable

Deprecated.

public class IltDistributedTable
extends Dictionary

This class implements a table of keys and values, where the values are actually stored as properties attached to the keys. In contrast to regular hash tables, putting a key/value pair in such a table does not preclude it from being garbage collected.

All keys of such a table must be of type IltWithProperties.

Since:
JTGO 1.0
See Also:
IlWithProperties
Deprecated Since:
JTGO 4.5

Constructor Summary
IltDistributedTable()
          Deprecated. Default constructor.
 
Method Summary
 Enumeration elements()
          Deprecated. Returns an enumeration of the values in this dictionary.
 Object get(Object key)
          Deprecated. Returns the value to which the key is mapped in this dictionary.
 boolean isEmpty()
          Deprecated. Tests if this dictionary maps no keys to value.
 Enumeration keys()
          Deprecated. Returns an enumeration of the keys in this dictionary.
 Object put(Object key, Object value)
          Deprecated. Maps the specified key to the specified value in this dictionary.
 Object remove(Object key)
          Deprecated. Removes the key (and its corresponding value) from this dictionary.
 int size()
          Deprecated. Returns the number of keys in this dictionary.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IltDistributedTable

public IltDistributedTable()
Deprecated. 
Default constructor.

Since:
JTGO 1.0
Method Detail

get

public Object get(Object key)
Deprecated. 
Returns the value to which the key is mapped in this dictionary.

Specified by:
get in class Dictionary

put

public Object put(Object key,
                  Object value)
Deprecated. 
Maps the specified key to the specified value in this dictionary. Neither the key nor the value can be null.

The value can be retrieved by calling the get method with a key that is equal to the original key.

Specified by:
put in class Dictionary
Parameters:
key - an instance of IltWithProperties
value - value the value
Returns:
the previous value to which the key was mapped in this dictionary

remove

public Object remove(Object key)
Deprecated. 
Removes the key (and its corresponding value) from this dictionary. This function does nothing if the key is not in this dictionary.

Specified by:
remove in class Dictionary
Parameters:
key - - the key that needs to be removed
Returns:
the value to which the key had been mapped in this dictionary

size

public int size()
Deprecated. 
Returns the number of keys in this dictionary. Since the keys are not explicitly listed, this function throws an exception.

Specified by:
size in class Dictionary

isEmpty

public boolean isEmpty()
Deprecated. 
Tests if this dictionary maps no keys to value. Since the keys are not explicitly listed, this function throws an exception.

Specified by:
isEmpty in class Dictionary

keys

public Enumeration keys()
Deprecated. 
Returns an enumeration of the keys in this dictionary. Since the keys are not explicitly listed, this function throws an exception.

Specified by:
keys in class Dictionary

elements

public Enumeration elements()
Deprecated. 
Returns an enumeration of the values in this dictionary. Since the keys are not explicitly listed, this function throws an exception.

Specified by:
elements in class Dictionary


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.   . All Rights Reserved.