Package 

Class BucketMap


  • 
    public class BucketMap<T>
    
                        

    Map-like datastructure that allows to have more than one value per int key. Allows to remove a value from LRU key by calling removeFromEnd

    • Method Summary

      Modifier and Type Method Description
      synchronized T acquire(int key)
      synchronized void release(int key, T value) Associates the object with the specified key and puts it into the BucketMap.
      synchronized T removeFromEnd()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • release

         synchronized void release(int key, T value)

        Associates the object with the specified key and puts it into the BucketMap. Does notoverwrite the previous object, if any.