You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Daniel Rall <dl...@finemaltcoding.com> on 2002/02/21 04:04:35 UTC
Re: cvs commit: jakarta-commons-sandbox/util/src/java/org/apache/commons/util/lru LRUStoreImp.java LRUStore.java LRUElementDescriptor.java LRUElement.java ILRUElement.java (2/2)
> ///////////////////////////////////////////////////////////
> /**
> * Description of the Method
> *
> *@return Description of the Return Value
> */
> public int hashCode()
> {
> return key.hashCode();
> }
>
>
> ///////////////////////////////////////////////////
> /**
> * Description of the Method
> *
> *@return Description of the Return Value
> */
> public String toString()
> {
> return "[key=" + key + ", val=" + val + "]";
> }
>
> }
> // end class
>
>
>
>
>
> 1.1 jakarta-commons-sandbox/util/src/java/org/apache/commons/util/lru/ILRUElement.java
>
> Index: ILRUElement.java
> ===================================================================
> package org.apache.commons.util.lru;
>
> import java.io.Serializable;
>
> /**
> * Allows the element to be overriden and customized.
> *
> * Pulled from JCS project for ease of use.
> *
> *@author asmuts
> *@created January 15, 2002
> */
> public interface ILRUElement extends Serializable
> {
> /**
> * Gets the key attribute of the ILRUElement object
> *
> *@return The key value
> */
> public Serializable getKey();
>
>
> /**
> * Gets the val attribute of the ILRUElement object
> *
> *@return The val value
> */
> public Serializable getVal();
>
>
> /**
> * Gets the createTime attribute of the ILRUElement object
> *
> *@return The createTime value
> */
> public long getCreateTime();
>
> }
>
>
>
>
> --
> To unsubscribe, e-mail: <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>