1 |
/* |
2 |
* Written by Doug Lea and Martin Buchholz with assistance from |
3 |
* members of JCP JSR-166 Expert Group and released to the public |
4 |
* domain, as explained at |
5 |
* http://creativecommons.org/publicdomain/zero/1.0/ |
6 |
*/ |
7 |
|
8 |
import java.util.Map; |
9 |
|
10 |
/** Allows tests to work with different Map implementations. */ |
11 |
public interface MapImplementation { |
12 |
/** Returns the Map implementation class. */ |
13 |
public Class<?> klazz(); |
14 |
/** Returns an empty map. */ |
15 |
public Map emptyMap(); |
16 |
public Object makeKey(int i); |
17 |
public Object makeValue(int i); |
18 |
public boolean isConcurrent(); |
19 |
public boolean permitsNullKeys(); |
20 |
public boolean permitsNullValues(); |
21 |
public boolean supportsSetValue(); |
22 |
} |