]> gitweb.fperrin.net Git - Dictionary.git/blob - jars/icu4j-4_4_2-src/main/classes/core/src/com/ibm/icu/impl/ICUCache.java
go
[Dictionary.git] / jars / icu4j-4_4_2-src / main / classes / core / src / com / ibm / icu / impl / ICUCache.java
1 /*\r
2  ***************************************************************************\r
3  * Copyright (c) 2007-2009 International Business Machines Corporation and *\r
4  * others.  All rights reserved.                                           *\r
5  ***************************************************************************\r
6 */\r
7 \r
8 package com.ibm.icu.impl;\r
9 \r
10 public interface ICUCache<K, V> {\r
11     // Type of reference holding the Map instance\r
12     public static final int SOFT = 0;\r
13     public static final int WEAK = 1;\r
14 \r
15     // NULL object, which may be used for a cache key\r
16     public static final Object NULL = new Object();\r
17 \r
18     public void clear();\r
19     public void put(K key, V value);\r
20     public V get(Object key);\r
21 }\r