public void insert(Object key, Object o) { if (o == null) {throw new IllegalArgumentException("Cannot insert a null object in the cache");} if (key == null) {throw new IllegalArgumentException("Cannot insert an object in the cache with null key");} if (m_map.containsKey(key)) { throw new IllegalStateException("Attempt to put in the cache an object that is already there"); } m_list.demote(); LRUCacheEntry entry = createCacheEntry(key, o); m_map.put(key, entry); m_list.promote(entry); } public void remove(Object key)