ariba.ui.aribaweb.util
Class AWMap_JavaHashtable

java.lang.Object
  extended by ariba.util.core.ClassExtension
      extended by ariba.ui.aribaweb.util.AWMap
          extended by ariba.ui.aribaweb.util.AWMap_JavaHashtable
All Implemented Interfaces:
java.lang.Cloneable

public final class AWMap_JavaHashtable
extends AWMap

AWMap implementation based on java.util.Map.


Field Summary
 
Fields inherited from class ariba.util.core.ClassExtension
forClass
 
Constructor Summary
AWMap_JavaHashtable()
          Creates a new AWMap_JavaHashtable object.
 
Method Summary
 void clear(java.lang.Object receiver)
          Removes all mappings from the given map.
 boolean containsKey(java.lang.Object receiver, java.lang.Object key)
          Returns true if the given map contains a mapping for the specified key.
 boolean containsValue(java.lang.Object receiver, java.lang.Object value)
          Returns true if the given map maps one or more keys to the specified value.
 java.lang.Object get(java.lang.Object receiver, java.lang.Object key)
          Returns the value to which the given map maps the specified key.
 boolean isEmpty(java.lang.Object receiver)
          Returns true if the map contains no key-value mappings.
 java.util.Iterator keys(java.lang.Object receiver)
          Returns an enumeration of the keys in the map.
 java.lang.Object put(java.lang.Object receiver, java.lang.Object key, java.lang.Object value)
          Associates the specified value with the specified key in the map.
 java.lang.Object remove(java.lang.Object receiver, java.lang.Object key)
          Removes the mapping for this key from this map if present.
 int size(java.lang.Object receiver)
          Returns the number of key-value mappings in the map.
 java.util.Iterator values(java.lang.Object receiver)
          Returns an enumeration of the values contained in the map.
 
Methods inherited from class ariba.ui.aribaweb.util.AWMap
get, get, registerClassExtension
 
Methods inherited from class ariba.util.core.ClassExtension
clone, forClass, getRealClass, setForClass
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AWMap_JavaHashtable

public AWMap_JavaHashtable()
Creates a new AWMap_JavaHashtable object.

Method Detail

clear

public void clear(java.lang.Object receiver)
Removes all mappings from the given map.

Specified by:
clear in class AWMap
Parameters:
receiver - map implementation

containsKey

public boolean containsKey(java.lang.Object receiver,
                           java.lang.Object key)
Returns true if the given map contains a mapping for the specified key.

Specified by:
containsKey in class AWMap
Parameters:
receiver - map implementation
key - key whose presence in map is to be tested

containsValue

public boolean containsValue(java.lang.Object receiver,
                             java.lang.Object value)
Returns true if the given map maps one or more keys to the specified value. More formally, returns true if and only if this map contains at least one mapping to a value v such that (value==null ? v==null : value.equals(v)).

Specified by:
containsValue in class AWMap
Parameters:
receiver - map implementation
value - value whose presence in map is to be tested
Returns:
true if map maps one or more keys to the specified value

get

public java.lang.Object get(java.lang.Object receiver,
                            java.lang.Object key)
Returns the value to which the given map maps the specified key. Returns null if the map contains no mapping for this key.

Specified by:
get in class AWMap
Parameters:
receiver - map implementation
key - key whose associated value is to be returned
Returns:
value to which map maps the specified key, or null if the map contains no mapping for this key

isEmpty

public boolean isEmpty(java.lang.Object receiver)
Returns true if the map contains no key-value mappings.

Specified by:
isEmpty in class AWMap
Parameters:
receiver - map implementation
Returns:
true if map contains no key-value mappings

keys

public java.util.Iterator keys(java.lang.Object receiver)
Returns an enumeration of the keys in the map.

Specified by:
keys in class AWMap
Parameters:
receiver - map implementation
Returns:
enumeration of the keys in the map

put

public java.lang.Object put(java.lang.Object receiver,
                            java.lang.Object key,
                            java.lang.Object value)
Associates the specified value with the specified key in the map. If the map previously contained a mapping for this key, the old value is replaced.

Specified by:
put in class AWMap
Parameters:
receiver - map implementation
key - key with which the specified value is to be associated
value - value to be associated with the specified key
Returns:
previous value associated with specified key, or null if there was no mapping for key

remove

public java.lang.Object remove(java.lang.Object receiver,
                               java.lang.Object key)
Removes the mapping for this key from this map if present.

Specified by:
remove in class AWMap
Parameters:
receiver - map implementation
key - key whose mapping is to be removed from the map
Returns:
previous value associated with specified key, or null if there was no mapping for key

size

public int size(java.lang.Object receiver)
Returns the number of key-value mappings in the map.

Specified by:
size in class AWMap
Parameters:
receiver - map implementation
Returns:
number of key-value mappings in map

values

public java.util.Iterator values(java.lang.Object receiver)
Returns an enumeration of the values contained in the map.

Specified by:
values in class AWMap
Parameters:
receiver - map implementation
Returns:
an enumeration of the values contained in the map


AribaWeb User Interface Development Framework
Copyright © 2000-2014 Ariba, Inc. All Rights Reserved.