com.epam.fix.validation.engine.utils.cache
Class AbstractCache

java.lang.Object
  extended by com.epam.fix.validation.engine.utils.cache.AbstractCache
All Implemented Interfaces:
ICache<Integer,Field>, Cloneable
Direct Known Subclasses:
AbstractGroupsCache, BlockCache, GroupCache

public abstract class AbstractCache
extends Object
implements ICache<Integer,Field>

Author:
Serhiy_Zahriychuk

Field Summary
protected  Map<Integer,Field> mapCache
           
 
Constructor Summary
AbstractCache()
           
 
Method Summary
 Object clone()
           
 Field get(Integer key)
          Returns value by input key.
 void put(Integer key, Field value)
          Puts the value by key into cache.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mapCache

protected Map<Integer,Field> mapCache
Constructor Detail

AbstractCache

public AbstractCache()
Method Detail

get

public Field get(Integer key)
Description copied from interface: ICache
Returns value by input key.

Specified by:
get in interface ICache<Integer,Field>
Parameters:
key - Input key.
Returns:
Instance of value.

put

public void put(Integer key,
                Field value)
Description copied from interface: ICache
Puts the value by key into cache.

Specified by:
put in interface ICache<Integer,Field>
Parameters:
key - Key of input value.
value - The instance that contains concrete value for input key.

clone

public Object clone()
Overrides:
clone in class Object


Copyright © 2000-2014 EPAM Systems. All Rights Reserved.