01: /* Soot - a J*va Optimization Framework
02: * Copyright (C) 2002 Ondrej Lhotak
03: *
04: * This library is free software; you can redistribute it and/or
05: * modify it under the terms of the GNU Lesser General Public
06: * License as published by the Free Software Foundation; either
07: * version 2.1 of the License, or (at your option) any later version.
08: *
09: * This library is distributed in the hope that it will be useful,
10: * but WITHOUT ANY WARRANTY; without even the implied warranty of
11: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12: * Lesser General Public License for more details.
13: *
14: * You should have received a copy of the GNU Lesser General Public
15: * License along with this library; if not, write to the
16: * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17: * Boston, MA 02111-1307, USA.
18: */
19:
20: package soot.util;
21:
22: import java.util.*;
23:
24: /** A map with sets as values.
25: *
26: * @author Ondrej Lhotak
27: */
28:
29: public interface MultiMap {
30: public boolean isEmpty();
31:
32: public int numKeys();
33:
34: public boolean containsKey(Object key);
35:
36: public boolean containsValue(Object value);
37:
38: public boolean put(Object key, Object value);
39:
40: public boolean putAll(Object key, Set values);
41:
42: public void putAll(MultiMap m);
43:
44: // public boolean putAll( Map m );
45: public boolean remove(Object key, Object value);
46:
47: public boolean remove(Object key);
48:
49: public boolean removeAll(Object key, Set values);
50:
51: public Set get(Object o);
52:
53: public Set keySet();
54:
55: public Set values();
56:
57: public boolean equals(Object o);
58:
59: public int hashCode();
60: }
|