Class AbstractCache

java.lang.Object
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 Details

  • Constructor Details

    • AbstractCache

      public AbstractCache()
  • Method Details

    • 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