Klasse VerboseElementCache<K extends IJavaElement & IOpenable>

Alle implementierten Schnittstellen:
Cloneable

public class VerboseElementCache<K extends IJavaElement & IOpenable> extends ElementCache<K>
  • Konstruktordetails

    • VerboseElementCache

      public VerboseElementCache(int size, String name)
  • Methodendetails

    • makeSpace

      protected boolean makeSpace(int space)
      Beschreibung aus Klasse kopiert: OverflowingLRUCache
      Ensures there is the specified amount of free space in the receiver, by removing old entries if necessary. Returns true if the requested space was made available, false otherwise. May not be able to free enough space since some elements cannot be removed until they are saved.
      Setzt außer Kraft:
      makeSpace in Klasse OverflowingLRUCache<K extends IJavaElement & IOpenable,JavaElementInfo>
      Parameter:
      space - Amount of space to free up
    • put

      public JavaElementInfo put(K key, JavaElementInfo value)
      Beschreibung aus Klasse kopiert: LRUCache
      Sets the value in the cache at the given key. Returns the value.
      Setzt außer Kraft:
      put in Klasse OverflowingLRUCache<K extends IJavaElement & IOpenable,JavaElementInfo>
      Parameter:
      key - Key of object to add.
      value - Value of object to add.
      Gibt zurück:
      added value.