net.sourceforge.idrs.utils.pool
Class PooledObject

java.lang.Object
  |
  +--net.sourceforge.idrs.utils.pool.PooledObject

public class PooledObject
extends java.lang.Object


Field Summary
protected  long born
           
protected  boolean free
           
protected  java.lang.Object value
           
 
Constructor Summary
PooledObject(long born, boolean free, java.lang.Object obj)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 boolean equalsObj(java.lang.Object obj)
           
protected  int genHashCode(int source, java.lang.Object x)
           
 long getBorn()
           
 java.lang.Object getValue()
           
 int hashCode()
           
 boolean isFree()
           
 void isFree(boolean free)
           
 void setBorn(long born)
           
 void setValue(java.lang.Object obj)
           
 
Methods inherited from class java.lang.Object
, clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

born

protected long born

free

protected boolean free

value

protected java.lang.Object value
Constructor Detail

PooledObject

public PooledObject(long born,
                    boolean free,
                    java.lang.Object obj)
             throws java.lang.Exception
Method Detail

isFree

public void isFree(boolean free)

isFree

public boolean isFree()

setBorn

public void setBorn(long born)

getBorn

public long getBorn()

setValue

public void setValue(java.lang.Object obj)

getValue

public java.lang.Object getValue()

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

equalsObj

public boolean equalsObj(java.lang.Object obj)

genHashCode

protected int genHashCode(int source,
                          java.lang.Object x)

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object