/** Returns if the entry is in the Main space's protected queue. */ public boolean inMainProtected() { return getQueueType() == PROTECTED; }
/** Returns if the entry is in the Eden or Main space. */ public boolean inEden() { return getQueueType() == EDEN; }
/** Returns if the entry is in the Main space's probation queue. */ public boolean inMainProbation() { return getQueueType() == PROBATION; }
@Override public final String toString() { return String.format("%s=[key=%s, value=%s, weight=%d, queueType=%,d, accessTimeNS=%,d, " + "writeTimeNS=%,d, varTimeNs=%,d, prevInAccess=%s, nextInAccess=%s, prevInWrite=%s, " + "nextInWrite=%s]", getClass().getSimpleName(), getKey(), getValue(), getWeight(), getQueueType(), getAccessTime(), getWriteTime(), getVariableTime(), getPreviousInAccessOrder() != null, getNextInAccessOrder() != null, getPreviousInWriteOrder() != null, getNextInWriteOrder() != null); } }
/** Returns if the entry is in the Main space's protected queue. */ public boolean inMainProtected() { return getQueueType() == PROTECTED; }
/** Returns if the entry is in the Main space's probation queue. */ public boolean inMainProbation() { return getQueueType() == PROBATION; }
/** Returns if the entry is in the Eden or Main space. */ public boolean inEden() { return getQueueType() == EDEN; }
@Override public final String toString() { return String.format("%s=[key=%s, value=%s, weight=%d, queueType=%,d, accessTimeNS=%,d, " + "writeTimeNS=%,d, varTimeNs=%,d, prevInAccess=%s, nextInAccess=%s, prevInWrite=%s, " + "nextInWrite=%s]", getClass().getSimpleName(), getKey(), getValue(), getWeight(), getQueueType(), getAccessTime(), getWriteTime(), getVariableTime(), getPreviousInAccessOrder() != null, getNextInAccessOrder() != null, getPreviousInWriteOrder() != null, getNextInWriteOrder() != null); } }