/******************************************************************************* * Copyright (c) 2007, 2008 IBM Corporation and Others * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * Hisashi MIYASHITA - initial API and implementation * Kentarou FUKUDA - initial API and implementation *******************************************************************************/ import java.util.Iterator; import java.util.LinkedList; import java.util.NoSuchElementException; import java.util.SortedMap; import java.util.TreeMap; /** * Utility class for cache map. */ public class CacheMap extends TreeMap { private static final long serialVersionUID = 6681131647931821052L; private final int maxSize; private final int evictSize; private final LinkedList