Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1)

E13403-04

oracle.javatools.util
Class Maps

java.lang.Object
  extended by oracle.javatools.util.Maps

public class Maps
extends java.lang.Object

An aggregation of abstract and concrete implementations of the Maps.AbstractHashMap interface which address various usage scenarios.

Most of the concrete map classes provided here extend, directly or indirectly, the abstract class Maps.AbstractHashMap, which provides a more extensible replacement for HashMap. These concrete class are the following:

The following concrete Maps.CacheStrategy classes are provided:


Nested Class Summary
static class Maps.AbstractCacheMap<K,V,E extends Maps.AbstractLinkedEntry<K,V>>
           
static interface Maps.AbstractEntry<K,V>
          The Map.Entry extended interface required by Maps.AbstractHashMap for its entries.
static class Maps.AbstractHashMap<K,V,E extends Maps.AbstractEntry<K,V>>
          An abstract, but nearly complete, implementation of the Map interface that is functionally equivalent to HashMap but that allows subclasses to do any or all of the following: control the concrete class of Map.Entry instances used so long as they extend Maps.AbstractEntry (see Maps.AbstractHashMap.createEntry(int, K, V, E)); override the calculation of hashCode and equals for all keys (see Maps.AbstractHashMap.keyHashCode(java.lang.Object) and Maps.AbstractHashMap.keyEquals(java.lang.Object, java.lang.Object)); override the calculation of hashCode and equals for all values (see Maps.AbstractHashMap.valueHashCode(java.lang.Object) and Maps.AbstractHashMap.valueEquals(java.lang.Object, java.lang.Object)); track when the map is constructed, initialized, and changed (see Maps.AbstractHashMap.mapConstructed(), Maps.AbstractHashMap.mapInitialized(), and Maps.AbstractHashMap.mapChanged()).
static interface Maps.AbstractLinkedEntry<K,V>
          The Map.Entry (and Maps.AbstractEntry) extended interface required by Maps.AbstractLinkedHashMap for its entries.
static class Maps.AbstractLinkedHashMap<K,V,E extends Maps.AbstractLinkedEntry<K,V>>
          An abstract, but nearly complete, implementation of the Map interface that is functionally equivalent to LinkedHashMap but is based on Maps.AbstractHashMap and allows subclasses the same customization options.
static class Maps.BoundedLruCacheStrategy<K,V,E extends Maps.AbstractLinkedEntry<K,V>>
          A bounded size LRU cache strategy.
static class Maps.CacheMap<K,V>
           
static class Maps.CacheStrategy<K,V,E extends Maps.AbstractLinkedEntry<K,V>>
          An abstract caching strategy for a cache map.
static class Maps.DefaultEntry<K,V>
          The default Maps.AbstractEntry implementation.
static class Maps.DefaultHashMap<K,V>
          The default implementation of Maps.AbstractHashMap, based on Maps.DefaultEntry.
static class Maps.DefaultLinkedEntry<K,V>
          The default Maps.AbstractLinkedEntry implementation.
static class Maps.LinkedHashMap<K,V>
          The default implementation of Maps.AbstractLinkedHashMap, based on Maps.DefaultLinkedEntry.
static class Maps.ManagedCacheMap<K,V>
          A cache map which is an MBean and can be monitored by a JMX client (e.g., JConsole).
static interface Maps.ManagedCacheMapMBean
           
static class Maps.SoftEntry<K,V>
          An Maps.AbstractEntry implementation which holds its value with a SoftReference.
static class Maps.SoftHashMap<K,V>
          An implementation of Maps.AbstractHashMap, based on Maps.SoftEntry, which holds its values with SoftReferences.
static class Maps.SoftLinkedEntry<K,V>
          An Maps.AbstractLinkedEntry implementation which holds its value with a SoftReference.
static class Maps.SoftLinkedHashMap<K,V>
          An implementation of Maps.AbstractLinkedHashMap, based on Maps.SoftLinkedEntry, which holds its values with SoftReferences.
static class Maps.UnboundedCacheStrategy<K,V,E extends Maps.AbstractLinkedEntry<K,V>>
          An unbounded cache strategy.
static class Maps.WeakEntry<K,V>
          An Maps.AbstractEntry implementation which holds its value with a WeakReference.
static class Maps.WeakHashMap<K,V>
          An implementation of Maps.AbstractHashMap, based on Maps.WeakEntry, which holds its values with WeakReferences.
static class Maps.WeakLinkedEntry<K,V>
          An Maps.AbstractLinkedEntry implementation which holds its value with a WeakReference.
static class Maps.WeakLinkedHashMap<K,V>
          An implementation of Maps.AbstractLinkedHashMap, based on Maps.WeakLinkedEntry, which holds its values with WeakReferences.
 
Constructor Summary
Maps()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Maps

public Maps()

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1)

E13403-04

Copyright © 1997, 2010, Oracle. All rights reserved.