Class LRUHashtable<K,​V>

    • Constructor Detail

      • LRUHashtable

        public LRUHashtable​(long max)
        Constructor.
        Parameters:
        max - Maximum capacity of this table in number of items.
    • Method Detail

      • getObjectSize

        public long getObjectSize​(Object obj)
        Always returns 1; this makes capacity a measure of the number of items in the table.
        Specified by:
        getObjectSize in class CapacityLimitedHashtable<K,​V>
        Parameters:
        obj - object to size; since this always returns 1 its value does not matter
        Returns:
        always returns 1