Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client
11g Release 1 (11.1.1)

E17503-02

oracle.jbo.common
Class WeakHashtable

java.lang.Object
  extended by oracle.adfnmc.java.util.Dictionary
      extended by oracle.jbo.common.WeakHashtable
Direct Known Subclasses:
WeakHashlist

public class WeakHashtable
extends Dictionary

Internal: Applications should not use this class.


Constructor Summary
WeakHashtable()
           
WeakHashtable(int initialCapacity)
           
WeakHashtable(int initialCapacity, float loadFactor)
          public static void main(String argv[]) { WeakHashtable tab0 = new WeakHashtable(); WeakHashtable tab1 = new WeakHashtable(20); WeakHashtable tab2 = new WeakHashtable(20, 7.2f); System.out.println("tab0 (" + tab0.getClass().getName() + ") " + tab0); System.out.println("tab1 (" + tab1.getClass().getName() + ") " + tab1); System.out.println("tab2 (" + tab2.getClass().getName() + ") " + tab2); }
 
Method Summary
 void clear()
           
 java.util.Enumeration elements()
          Answers an Enumeration on the elements of this Dictionary.
 java.lang.Object get(java.lang.Object key)
          Answers the value associated with key.
 boolean isEmpty()
          Answers if this Dictionary has no key/value pairs, a size of zero.
 java.util.Enumeration keys()
          Answers an Enumeration on the keys of this Dictionary.
 java.lang.Object put(java.lang.Object key, java.lang.Object value)
          Associate key with value in this Dictionary.
 java.lang.Object remove(java.lang.Object key)
          Remove the key/value pair with the specified key from this Dictionary.
 java.lang.Object removeStrict(java.lang.Object key, java.lang.Object value)
           
 int size()
          Answers the number of key/value pairs in this Dictionary.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WeakHashtable

public WeakHashtable(int initialCapacity,
                     float loadFactor)
public static void main(String argv[]) { WeakHashtable tab0 = new WeakHashtable(); WeakHashtable tab1 = new WeakHashtable(20); WeakHashtable tab2 = new WeakHashtable(20, 7.2f); System.out.println("tab0 (" + tab0.getClass().getName() + ") " + tab0); System.out.println("tab1 (" + tab1.getClass().getName() + ") " + tab1); System.out.println("tab2 (" + tab2.getClass().getName() + ") " + tab2); }


WeakHashtable

public WeakHashtable(int initialCapacity)

WeakHashtable

public WeakHashtable()
Method Detail

size

public int size()
Description copied from class: Dictionary
Answers the number of key/value pairs in this Dictionary.

Specified by:
size in class Dictionary
Returns:
the number of key/value pairs in this Dictionary
See Also:
Dictionary.elements(), Dictionary.keys()

isEmpty

public boolean isEmpty()
Description copied from class: Dictionary
Answers if this Dictionary has no key/value pairs, a size of zero.

Specified by:
isEmpty in class Dictionary
Returns:
true if this Dictionary has no key/value pairs, false otherwise
See Also:
Dictionary.size()

keys

public java.util.Enumeration keys()
Description copied from class: Dictionary
Answers an Enumeration on the keys of this Dictionary.

Specified by:
keys in class Dictionary
Returns:
an Enumeration of the keys of this Dictionary
See Also:
Dictionary.elements(), Dictionary.size(), Enumeration

elements

public java.util.Enumeration elements()
Description copied from class: Dictionary
Answers an Enumeration on the elements of this Dictionary.

Specified by:
elements in class Dictionary
Returns:
an Enumeration of the values of this Dictionary
See Also:
Dictionary.keys(), Dictionary.size(), Enumeration

get

public java.lang.Object get(java.lang.Object key)
Description copied from class: Dictionary
Answers the value associated with key.

Specified by:
get in class Dictionary
Parameters:
key - the key of the value returned
Returns:
the value associated with key or null if the specified key does not exist
See Also:
Dictionary.put(java.lang.Object, java.lang.Object)

put

public java.lang.Object put(java.lang.Object key,
                            java.lang.Object value)
Description copied from class: Dictionary
Associate key with value in this Dictionary. If key exists in the Dictionary prior to this call being made, the old value is replaced.

Specified by:
put in class Dictionary
Parameters:
key - the key to add
value - the value to add
Returns:
the old value previously associated with key or null if key is new to the Dictionary.
See Also:
Dictionary.elements(), Dictionary.get(java.lang.Object), Dictionary.keys()

remove

public java.lang.Object remove(java.lang.Object key)
Description copied from class: Dictionary
Remove the key/value pair with the specified key from this Dictionary.

Specified by:
remove in class Dictionary
Parameters:
key - the key to remove
Returns:
the associated value or else null if key is not known to this Dictionary
See Also:
Dictionary.get(java.lang.Object), Dictionary.put(java.lang.Object, java.lang.Object)

removeStrict

public java.lang.Object removeStrict(java.lang.Object key,
                                     java.lang.Object value)

clear

public void clear()

Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client
11g Release 1 (11.1.1)

E17503-02

Copyright © 2011, Oracle and/or its affiliates. All rights reserved.