Bees v0.5.0 API

bees.core
Interface ObjectMap

All Known Implementing Classes:
HashMap, Alias

public interface ObjectMap

A simple mapping interface, used mainly for backwards compatability.


Method Summary
 java.util.Enumeration elements()
           
 java.lang.Object get(java.lang.Object key)
          Get an object mapping.
 java.util.Enumeration keys()
           
 java.lang.Object put(java.lang.Object key, java.lang.Object value)
           
 java.lang.Object remove(java.lang.Object key)
          Remove an object mapping.
 int size()
           
 

Method Detail

get

public java.lang.Object get(java.lang.Object key)
Get an object mapping.
Parameters:
key - The key of the object to get out of the mapping.
Returns:
The object matching the given key or null.

remove

public java.lang.Object remove(java.lang.Object key)
Remove an object mapping.
Parameters:
key - The key of the object to remove from the mapping.
Returns:
The object matching the given key or null.

put

public java.lang.Object put(java.lang.Object key,
                            java.lang.Object value)
Parameters:
key - The key of the object to put in the mapping.
value - The object value to map.
Returns:
The previous object that was in this mapping.

keys

public java.util.Enumeration keys()
Returns:
An enumeration containing the keys in the mapping.

elements

public java.util.Enumeration elements()
Returns:
An enumeration containing the object values in the mapping.

size

public int size()

Bees v0.5.0 API

This documentation is Copyright (C) 2002 The University of Utah. All Rights Reserved. See the individual source files for distribution terms.
Documentation, software, and mailing lists for Bees v0.5.0 can be found at the Janos Project: http://www.cs.utah.edu/flux/janos/