@@ -0,0 +1,1392 @@
+/*%0A * Copyright 2012 Google Inc. All Rights Reserved.%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *     http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0Apackage com.googlecode.concurrentlinkedhashmap;%0A%0Aimport javax.annotation.concurrent.ThreadSafe;%0A%0A/**%0A * A class that can determine the weight of an entry. The total weight threshold%0A * is used to determine when an eviction is required.%0A *%0A * @author ben.manes@gmail.com (Ben Manes)%0A * @see %3Ca href=%22http://code.google.com/p/concurrentlinkedhashmap/%22%3E%0A *      http://code.google.com/p/concurrentlinkedhashmap/%3C/a%3E%0A */%0A@ThreadSafe%0Apublic interface EntryWeigher%3CK, V%3E %7B%0A%0A  /**%0A   * Measures an entry's weight to determine how many units of capacity that%0A   * the key and value consumes. An entry must consume a minimum of one unit.%0A   *%0A   * @param key the key to weigh%0A   * @param value the value to weigh%0A   * @return the entry's weight%0A   */%0A  int weightOf(K key, V value);%0A%7D%0A

Create EntryWeigher.java