com.alachisoft.jvcache.runtime.caching
Class NamedTagsDictionary

java.lang.Object
  extended by com.alachisoft.jvcache.runtime.caching.NamedTagsDictionary

public class NamedTagsDictionary
extends java.lang.Object

NamedTagsDictionary Provide Different Method for Tags to use with Cache Operations to use Tags with Cache Items


Constructor Summary
NamedTagsDictionary()
           
 
Method Summary
 void add(java.lang.String key, boolean value)
          Add String value against key
 void add(java.lang.String key, char value)
          Add String value against key
 void add(java.lang.String key, java.util.Date value)
          Add String value against key
 void add(java.lang.String key, double value)
          Add double value against key
 void add(java.lang.String key, float value)
          Add String value against key
 void add(java.lang.String key, int value)
          Add integer value against key
 void add(java.lang.String key, long value)
          Add long value against key
 void add(java.lang.String key, java.lang.String value)
          Add String value against key
 boolean contains(java.lang.String key)
           
 int getCount()
           
 java.util.Iterator getIterator()
           
 java.util.Iterator getKeysIterator()
           
 java.lang.Object getValue(java.lang.String key)
           
 void remove(java.lang.String key)
          remove value against the key from tags dictionary
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NamedTagsDictionary

public NamedTagsDictionary()
Method Detail

add

public void add(java.lang.String key,
                int value)
         throws ArgumentNullException,
                ArgumentException
Add integer value against key

Parameters:
key - to refer element
value - integer to be added in tag dictionary
Throws:
ArgumentNullException
ArgumentException

add

public void add(java.lang.String key,
                long value)
         throws ArgumentNullException,
                ArgumentException
Add long value against key

Parameters:
key - to refer element
value - long to be added in tag dictionary
Throws:
ArgumentNullException
ArgumentException

add

public void add(java.lang.String key,
                float value)
         throws ArgumentNullException,
                ArgumentException
Add String value against key

Parameters:
key - to refer element
value - float to be added in tag dictionary
Throws:
ArgumentNullException
ArgumentException

add

public void add(java.lang.String key,
                double value)
         throws ArgumentNullException,
                ArgumentException
Add double value against key

Parameters:
key - to refer element
value - double to be added in tag dictionary
Throws:
ArgumentNullException
ArgumentException

add

public void add(java.lang.String key,
                java.lang.String value)
         throws ArgumentNullException,
                ArgumentException
Add String value against key

Parameters:
key - to refer element
value - String to be added in tag dictionary
Throws:
ArgumentNullException - is thrown if value is null
ArgumentException

add

public void add(java.lang.String key,
                char value)
         throws ArgumentNullException,
                ArgumentException
Add String value against key

Parameters:
key - to refer element
value - char to be added in tag dictionary
Throws:
ArgumentNullException
ArgumentException

add

public void add(java.lang.String key,
                boolean value)
         throws ArgumentNullException,
                ArgumentException
Add String value against key

Parameters:
key - to refer element
value - boolean to be added in tag dictionary
Throws:
ArgumentNullException
ArgumentException

add

public void add(java.lang.String key,
                java.util.Date value)
         throws ArgumentNullException,
                ArgumentException
Add String value against key

Parameters:
key - to refer element
value - Date to be added in tag dictionary
Throws:
ArgumentNullException
ArgumentException

remove

public void remove(java.lang.String key)
remove value against the key from tags dictionary

Parameters:
key - to be removed

getCount

public int getCount()
Returns:
total number of elements in tags dictionary

getIterator

public java.util.Iterator getIterator()
Returns:
iterator of tags dictionary entries

getKeysIterator

public java.util.Iterator getKeysIterator()
Returns:
iterator of tags dictionary keys

contains

public boolean contains(java.lang.String key)
Parameters:
key - to be verified
Returns:
true if key exists otherwise false

getValue

public java.lang.Object getValue(java.lang.String key)
Parameters:
key -
Returns: