ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/tck/MapImplementation.java
Revision: 1.1
Committed: Wed Aug 23 05:33:00 2017 UTC (6 years, 8 months ago) by jsr166
Branch: MAIN
Log Message:
8186171: HashMap: Entry.setValue may not work after Iterator.remove() called for previous entries

File Contents

# Content
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 }