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)
|
Methods inherited from class java.lang.Object |
, clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
born
protected long born
free
protected boolean free
value
protected java.lang.Object value
PooledObject
public PooledObject(long born,
boolean free,
java.lang.Object obj)
throws java.lang.Exception
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