Class CachingMap<T>

    • Constructor Detail

      • CachingMap

        public CachingMap​(int capacity)
        Creates a caching map with a maximum capacity equal to the capacity parameter.
        Parameters:
        capacity - the maximum capacity; if capacity < 1 then this map will always remove the latest added element