Rakesh API

org.rakeshv.utils
Interface Map<K,V>

All Superinterfaces:
java.util.Map<K,V>

public interface Map<K,V>
extends java.util.Map<K,V>

A sub-class of java.util.Map that defines additional methods that will be implemented by all the implementations that are used to implement caches.

Copyright 2004-2006 Rakesh Vidyadharan

Version:
$Id: Map.java,v 1.1 2006/03/11 01:00:43 rakesh Exp $
Author:
Rakesh Vidyadharan 2004 September 1

Nested Class Summary
static interface Map.Statistics
          An interface that defines the methods that may be invoked to monitor cache usage.
 
Nested classes/interfaces inherited from interface java.util.Map
java.util.Map.Entry<K,V>
 
Method Summary
 int getMaxEntries()
          Returns the maximum number of entries that may be held in the map.
 Map.Statistics getStatistics()
          Returns statistics about cache access.
 void setMaxEntries(int maxEntries)
          Set the maximum number of entries that may be help in the map.
 
Methods inherited from interface java.util.Map
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values
 

Method Detail

getMaxEntries

int getMaxEntries()
Returns the maximum number of entries that may be held in the map.

Returns:
int The maximum numer of entries.

setMaxEntries

void setMaxEntries(int maxEntries)
Set the maximum number of entries that may be help in the map. This can be used to dynamically change the size of the cache.

Parameters:
maxEntries - The value to set.

getStatistics

Map.Statistics getStatistics()
Returns statistics about cache access. This may be used by client applications to monitor cache usage.

Returns:
Statistics The object that contains information about cache access.

Rakesh API

Copyright © 2002-2005 - Rakesh Vidyadharan