org.stanwood.media.extensions
Class CacheKey

java.lang.Object
  extended by org.stanwood.media.extensions.CacheKey

public class CacheKey
extends java.lang.Object

Used as the key when caching extensions


Constructor Summary
CacheKey(MediaDirConfig config, int number)
          The constructor
 
Method Summary
 boolean equals(java.lang.Object obj)
          
 MediaDirConfig getConfig()
          Used to get media directory configuration
 int getNumber()
          Used to get the extension index number
 int hashCode()
          
 void setConfig(MediaDirConfig config)
          Used to set the media directory configuration
 void setNumber(int number)
          Used to set the extension index number
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CacheKey

public CacheKey(MediaDirConfig config,
                int number)
The constructor

Parameters:
config - The media directory configuration
number - The index number of the extension
Method Detail

getConfig

public MediaDirConfig getConfig()
Used to get media directory configuration

Returns:
the media directory configuration

setConfig

public void setConfig(MediaDirConfig config)
Used to set the media directory configuration

Parameters:
config - the media directory configuration

getNumber

public int getNumber()
Used to get the extension index number

Returns:
the extension index number

setNumber

public void setNumber(int number)
Used to set the extension index number

Parameters:
number - the extension index number

hashCode

public int hashCode()

Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)

Overrides:
equals in class java.lang.Object