1 |
jsr166 |
1.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.Collection; |
9 |
|
|
|
10 |
|
|
/** Allows tests to work with different Collection implementations. */ |
11 |
|
|
public interface CollectionImplementation { |
12 |
|
|
/** Returns the Collection class. */ |
13 |
|
|
public Class<?> klazz(); |
14 |
|
|
/** Returns an empty collection. */ |
15 |
|
|
public Collection emptyCollection(); |
16 |
|
|
public Object makeElement(int i); |
17 |
|
|
public boolean isConcurrent(); |
18 |
|
|
public boolean permitsNulls(); |
19 |
|
|
} |