public abstract class LockedEntry extends java.lang.ref.WeakReference implements InterfaceEntry
Modifier and Type | Field and Description |
---|---|
int |
data
The last time this entry was fetched
|
java.lang.Object |
hardReference
Don't allow the object pointed to by this entry to be deallocated
|
int |
hash
the hash value
|
InterfaceEntry |
nextEntry
the next entry
|
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 hard reference
|
boolean |
equals(java.lang.Object obj) |
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)
set the next entry
|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
get
public InterfaceEntry nextEntry
public final int hash
public int data
public java.lang.Object hardReference
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
- set the datapublic void clearHardReference()
clearHardReference
in interface InterfaceEntry
@CheckReturnValue public boolean hasHardReference()
hasHardReference
in interface InterfaceEntry
public void setNext(@Nullable InterfaceEntry entry)
InterfaceEntry
setNext
in interface InterfaceEntry
entry
- the next entry@CheckReturnValue @Nullable public 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@CheckReturnValue public int getData()
InterfaceEntry
getData
in interface InterfaceEntry
stSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.