public abstract class LockedEntry extends java.lang.Object implements InterfaceEntry
Constructor and Description |
---|
LockedEntry(int hash,
java.lang.Object referent,
InterfaceEntry next)
creates a new Cache Entry
|
Modifier and Type | Method and Description |
---|---|
void |
clearHardReference()
clear the reference
|
boolean |
equals(java.lang.Object obj) |
java.lang.Object |
get() |
int |
getData()
The last time this entry was fetched
|
boolean |
hasHardReference()
has this entry got a hard reference.
|
int |
hashCode() |
InterfaceEntry |
next() |
void |
setData(int temp) |
void |
setNext(InterfaceEntry entry)
the next entry
|
public LockedEntry(int hash, java.lang.Object referent, InterfaceEntry next)
hash
- The hash idreferent
- the objectnext
- the next elementpublic void setData(int temp)
setData
in interface InterfaceEntry
temp
- the datapublic java.lang.Object get()
get
in interface InterfaceEntry
public void clearHardReference()
clearHardReference
in interface InterfaceEntry
public boolean hasHardReference()
hasHardReference
in interface InterfaceEntry
public void setNext(InterfaceEntry entry)
setNext
in interface InterfaceEntry
entry
- the entrypublic InterfaceEntry next()
next
in interface InterfaceEntry
@CheckReturnValue public int hashCode()
hashCode
in class java.lang.Object
@CheckReturnValue public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the object to checkpublic int getData()
InterfaceEntry
getData
in interface InterfaceEntry
stSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.