1 // 2016 and later: Unicode, Inc. and others. 2 // License & terms of use: http://www.unicode.org/copyright.html#License 3 /* 4 *************************************************************************** 5 * Copyright (c) 2007-2009 International Business Machines Corporation and * 6 * others. All rights reserved. * 7 *************************************************************************** 8 */ 9 10 package com.ibm.icu.impl; 11 12 public interface ICUCache<K, V> { 13 // Type of reference holding the Map instance 14 public static final int SOFT = 0; 15 public static final int WEAK = 1; 16 17 // NULL object, which may be used for a cache key 18 public static final Object NULL = new Object(); 19 20 public void clear(); 21 public void put(K key, V value); 22 public V get(Object key); 23 } 24