org.nnsoft.sameas4j.cache
Class CacheKey

java.lang.Object
  extended by org.nnsoft.sameas4j.cache.CacheKey
All Implemented Interfaces:
Serializable

public final class CacheKey
extends Object
implements Serializable

The Cache key representation.

See Also:
Serialized Form

Constructor Summary
CacheKey(String service, long lastModified)
          Creates a new Cache key instance.
 
Method Summary
 boolean equals(Object obj)
          
 long getLastModified()
          Returns the sameas service "Last-modified" header.
 String getService()
          Returns the sameas service.
 int hashCode()
          
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CacheKey

public CacheKey(String service,
                long lastModified)
Creates a new Cache key instance.

Parameters:
service - The sameas service
lastModified - The sameas service "Last-modified" header
Method Detail

getService

public String getService()
Returns the sameas service.

Returns:
The sameas service

getLastModified

public long getLastModified()
Returns the sameas service "Last-modified" header.

Returns:
The sameas service "Last-modified" header

hashCode

public int hashCode()

Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)

Overrides:
equals in class Object

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2009-2012 99 Software Foundation. All Rights Reserved.