Class BiIntKeyCache<E>


  • public class BiIntKeyCache<E>
    extends java.lang.Object
    Read-through cache for items retrievable by two positive integer IDs. N.B.: This class uses a list of lists internally. Therefore, the memory footprint will be proportional to the highest integer ID used. As such, this class should only be used in cases where the range of valid IDs goes from zero to a low max.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      E get​(int firstId, int secondId)  
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • get

        public E get​(int firstId,
                     int secondId)
        Returns:
        the element corresponding to the two int provided