@Test public void virginToString() { Entry e = new Entry(); e.toString(); }
public String toString(HeapCache c) { StringBuilder sb = new StringBuilder(); sb.append("Entry{"); sb.append("id=").append(System.identityHashCode(this)); sb.append(", lock=").append(num2processingStateText(getProcessingState())); sb.append(", key="); Object key = getKeyObj(); if (key == null) { sb.append(hashCode); } else { sb.append(key); if (c != null && (HeapCache.modifiedHash(key.hashCode()) != hashCode)) { sb.append(", keyMutation=true"); } } Object valueOrException = getValueOrException(); if (valueOrException instanceof ExceptionWrapper) { sb.append(", exception=") .append((((ExceptionWrapper) valueOrException).getException().getClass().getSimpleName())); } else if (valueOrException != null) { sb.append(", valueId=").append(System.identityHashCode(valueOrException)); } else { sb.append(", value=null"); } long t = getRefreshTime(); if (t > 0) { sb.append(", refresh=").append(formatMillis(t)); } long nrt = nextRefreshTime; if (nrt < 0) { sb.append(", nextRefreshTime(sharp)=").append(formatMillis(-nrt)); } else if (nrt == ExpiryPolicy.ETERNAL) { sb.append(", nextRefreshTime=ETERNAL"); } else if (nrt >= EXPIRY_TIME_MIN) { sb.append(", nextRefreshTime(timer)=").append(formatMillis(nrt)); } else { sb.append(", state=").append(nrt); } if (Thread.holdsLock(this)) { if (getTask() != null) { sb.append(", timerState=").append(getTask()); } else { sb.append(", noTimer"); } } else { sb.append(", timerState=?"); } sb.append("}"); return sb.toString(); }
Entry extends CompactEntry<K, V> implements CacheEntry<K, V>, StorageEntry, ExaminationEntry<K, V> { public String toString(HeapCache c) { StringBuilder sb = new StringBuilder(); sb.append("Entry{"); sb.append("id=").append(System.identityHashCode(this)); sb.append(", lock=").append(num2processingStateText(getProcessingState())); sb.append(", key="); Object key = getKeyObj(); if (key == null) { sb.append(hashCode); } else { sb.append(key); if (c != null && (HeapCache.modifiedHash(key.hashCode()) != hashCode)) { sb.append(", keyMutation=true"); } } Object valueOrException = getValueOrException(); if (valueOrException instanceof ExceptionWrapper) { sb.append(", exception=") .append((((ExceptionWrapper) valueOrException).getException().getClass().getSimpleName())); } else if (valueOrException != null) { sb.append(", valueId=").append(System.identityHashCode(valueOrException)); } else { sb.append(", value=null"); } long t = getRefreshTime(); if (t > 0) { sb.append(", refresh=").append(formatMillis(t)); } long nrt = nextRefreshTime; if (nrt < 0) { sb.append(", nextRefreshTime(sharp)=").append(formatMillis(-nrt)); } else if (nrt == ExpiryPolicy.ETERNAL) { sb.append(", nextRefreshTime=ETERNAL"); } else if (nrt >= EXPIRY_TIME_MIN) { sb.append(", nextRefreshTime(timer)=").append(formatMillis(nrt)); } else { sb.append(", state=").append(nrt); } if (Thread.holdsLock(this)) { if (getTask() != null) { sb.append(", timerState=").append(getTask()); } else { sb.append(", noTimer"); } } else { sb.append(", timerState=?"); } sb.append("}"); return sb.toString(); } }
Entry extends CompactEntry<K, V> implements CacheEntry<K, V>, StorageEntry, ExaminationEntry<K, V> { public String toString(HeapCache c) { StringBuilder sb = new StringBuilder(); sb.append("Entry{"); sb.append("id=").append(System.identityHashCode(this)); sb.append(", lock=").append(num2processingStateText(getProcessingState())); sb.append(", key="); Object key = getKeyObj(); if (key == null) { sb.append(hashCode); } else { sb.append(key); if (c != null && (HeapCache.modifiedHash(key.hashCode()) != hashCode)) { sb.append(", keyMutation=true"); } } Object valueOrException = getValueOrException(); if (valueOrException instanceof ExceptionWrapper) { sb.append(", exception=") .append((((ExceptionWrapper) valueOrException).getException().getClass().getSimpleName())); } else if (valueOrException != null) { sb.append(", valueId=").append(System.identityHashCode(valueOrException)); } else { sb.append(", value=null"); } long t = getRefreshTime(); if (t > 0) { sb.append(", refresh=").append(formatMillis(t)); } long nrt = nextRefreshTime; if (nrt < 0) { sb.append(", nextRefreshTime(sharp)=").append(formatMillis(-nrt)); } else if (nrt == ExpiryPolicy.ETERNAL) { sb.append(", nextRefreshTime=ETERNAL"); } else if (nrt >= EXPIRY_TIME_MIN) { sb.append(", nextRefreshTime(timer)=").append(formatMillis(nrt)); } else { sb.append(", state=").append(nrt); } if (Thread.holdsLock(this)) { if (getTask() != null) { sb.append(", timerState=").append(getTask()); } else { sb.append(", noTimer"); } } else { sb.append(", timerState=?"); } sb.append("}"); return sb.toString(); } Entry(K key, int hashCode);  Entry(); }
Entry extends CompactEntry<K, V> implements CacheEntry<K, V>, StorageEntry, ExaminationEntry<K, V> { public String toString(HeapCache c) { StringBuilder sb = new StringBuilder(); sb.append("Entry{"); sb.append("id=").append(System.identityHashCode(this)); sb.append(", lock=").append(num2processingStateText(getProcessingState())); sb.append(", key="); Object key = getKeyObj(); if (key == null) { sb.append(hashCode); } else { sb.append(key); if (c != null && (HeapCache.modifiedHash(key.hashCode()) != hashCode)) { sb.append(", keyMutation=true"); } } Object valueOrException = getValueOrException(); if (valueOrException instanceof ExceptionWrapper) { sb.append(", exception=") .append((((ExceptionWrapper) valueOrException).getException().getClass().getSimpleName())); } else if (valueOrException != null) { sb.append(", valueId=").append(System.identityHashCode(valueOrException)); } else { sb.append(", value=null"); } long t = getRefreshTime(); if (t > 0) { sb.append(", refresh=").append(formatMillis(t)); } long nrt = nextRefreshTime; if (nrt < 0) { sb.append(", nextRefreshTime(sharp)=").append(formatMillis(-nrt)); } else if (nrt == ExpiryPolicy.ETERNAL) { sb.append(", nextRefreshTime=ETERNAL"); } else if (nrt >= EXPIRY_TIME_MIN) { sb.append(", nextRefreshTime(timer)=").append(formatMillis(nrt)); } else { sb.append(", state=").append(nrt); } if (Thread.holdsLock(this)) { if (getTask() != null) { sb.append(", timerState=").append(getTask()); } else { sb.append(", noTimer"); } } else { sb.append(", timerState=?"); } sb.append("}"); return sb.toString(); } Entry(K key, int hashCode);  Entry(); CacheEntry<K, V> getTempCacheEntry(); void setRefreshTime(long t); @Override long getRefreshTime(); @SuppressWarnings("deprecation") @Override @Deprecated long getLastModification(); static String num2processingStateText(int ps); int getProcessingState(); boolean checkAndSwitchProcessingState(int ps0, int ps); void startProcessing(int ps, EntryAction action); void nextProcessingStep(int ps); void processingDone(EntryAction action); void processingDone(); long getNextRefreshTime(); void setNextRefreshTime(long nextRefreshTime); void ensureAbort(boolean finished); boolean isProcessing(); void waitForProcessing(); boolean isGettingRefresh(); final void removedFromList(); boolean isRemovedFromReplacementList(); boolean isNotYetInsertedInReplacementList(); Entry shortCircuit(); final boolean isVirgin(); final boolean isDataAvailable(); final boolean isDataAvailableOrProbation(); final boolean hasFreshData(InternalClock t); void setExpiredState(); boolean isExpiredState(); void setGone(); final boolean isGone(); final boolean needsTimeCheck(); boolean isHot(); void setHot(boolean f); void setCompressedWeight(int v); int getCompressedWeight(); long getValueExpiryTime(); @Override long getCreatedOrUpdated(); @Override long getEntryExpiryTime(); String toString(HeapCache c); @Override String toString(); TimerTask getTask(); X getPiggyBack(Class<X> type); void setTask(TimerTask v); void setEntryAction(EntryAction action); EntryAction getEntryAction(); void resetEntryAction(); void setSuppressedLoadExceptionInformation(ExceptionInformation w); void resetSuppressedLoadExceptionInformation(); ExceptionInformation getSuppressedLoadExceptionInformation(); void setRefreshProbationNextRefreshTime(long nrt); long getRefreshProbationNextRefreshTime(); static void removeFromList(Entry e); static void insertInList(Entry head, Entry e); static E insertIntoTailCyclicList(E head, E e); static E removeFromCyclicList(E head, E e); static Entry removeFromCyclicList(Entry e); static int getCyclicListEntryCount(Entry e); static boolean checkCyclicListIntegrity(Entry e); }
Entry extends CompactEntry<K, V> implements CacheEntry<K, V>, StorageEntry, ExaminationEntry<K, V> { public String toString(HeapCache c) { StringBuilder sb = new StringBuilder(); sb.append("Entry{"); sb.append("id=").append(System.identityHashCode(this)); sb.append(", lock=").append(num2processingStateText(getProcessingState())); sb.append(", key="); Object key = getKeyObj(); if (key == null) { sb.append(hashCode); } else { sb.append(key); if (c != null && (HeapCache.modifiedHash(key.hashCode()) != hashCode)) { sb.append(", keyMutation=true"); } } Object valueOrException = getValueOrException(); if (valueOrException instanceof ExceptionWrapper) { sb.append(", exception=") .append((((ExceptionWrapper) valueOrException).getException().getClass().getSimpleName())); } else if (valueOrException != null) { sb.append(", valueId=").append(System.identityHashCode(valueOrException)); } else { sb.append(", value=null"); } long t = getRefreshTime(); if (t > 0) { sb.append(", refresh=").append(formatMillis(t)); } long nrt = nextRefreshTime; if (nrt < 0) { sb.append(", nextRefreshTime(sharp)=").append(formatMillis(-nrt)); } else if (nrt == ExpiryPolicy.ETERNAL) { sb.append(", nextRefreshTime=ETERNAL"); } else if (nrt >= EXPIRY_TIME_MIN) { sb.append(", nextRefreshTime(timer)=").append(formatMillis(nrt)); } else { sb.append(", state=").append(nrt); } if (Thread.holdsLock(this)) { if (getTask() != null) { sb.append(", timerState=").append(getTask()); } else { sb.append(", noTimer"); } } else { sb.append(", timerState=?"); } sb.append("}"); return sb.toString(); } Entry(K key, int hashCode);  Entry(); CacheEntry<K, V> getTempCacheEntry(); void setRefreshTime(long t); @Override long getRefreshTime(); @SuppressWarnings("deprecation") @Override @Deprecated long getLastModification(); static String num2processingStateText(int ps); int getProcessingState(); boolean checkAndSwitchProcessingState(int ps0, int ps); void startProcessing(int ps, EntryAction action); void nextProcessingStep(int ps); void processingDone(EntryAction action); void processingDone(); long getNextRefreshTime(); void setNextRefreshTime(long nextRefreshTime); void ensureAbort(boolean finished); boolean isProcessing(); void waitForProcessing(); boolean isGettingRefresh(); final void removedFromList(); boolean isRemovedFromReplacementList(); boolean isNotYetInsertedInReplacementList(); Entry shortCircuit(); final boolean isVirgin(); final boolean isDataAvailable(); final boolean isDataAvailableOrProbation(); final boolean hasFreshData(InternalClock t); void setExpiredState(); boolean isExpiredState(); void setGone(); final boolean isGone(); final boolean needsTimeCheck(); boolean isHot(); void setHot(boolean f); void setCompressedWeight(int v); int getCompressedWeight(); long getValueExpiryTime(); @Override long getCreatedOrUpdated(); @Override long getEntryExpiryTime(); String toString(HeapCache c); @Override String toString(); TimerTask getTask(); X getPiggyBack(Class<X> type); void setTask(TimerTask v); void setEntryAction(EntryAction action); EntryAction getEntryAction(); void resetEntryAction(); void setSuppressedLoadExceptionInformation(ExceptionInformation w); void resetSuppressedLoadExceptionInformation(); ExceptionInformation getSuppressedLoadExceptionInformation(); void setRefreshProbationNextRefreshTime(long nrt); long getRefreshProbationNextRefreshTime(); static void removeFromList(Entry e); static void insertInList(Entry head, Entry e); static E insertIntoTailCyclicList(E head, E e); static E removeFromCyclicList(E head, E e); static Entry removeFromCyclicList(Entry e); static int getCyclicListEntryCount(Entry e); static boolean checkCyclicListIntegrity(Entry e); static final int EXPIRY_TIME_MIN; static final int DATA_VALID; static final int VIRGIN; static final int READ_NON_VALID; static final int REMOVE_PENDING; static final int ABORTED; static final int EXPIRED; static final int EXPIRED_REFRESH_PENDING; static final int EXPIRED_REFRESHED; static final int GONE; static final int GONE_OTHER; public Entry next; public Entry prev; }