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