01: /*
02: * GeoTools - OpenSource mapping toolkit
03: * http://geotools.org
04: * (C) 2002-2006, Geotools Project Managment Committee (PMC)
05: *
06: * This library is free software; you can redistribute it and/or
07: * modify it under the terms of the GNU Lesser General Public
08: * License as published by the Free Software Foundation; either
09: * version 2.1 of the License, or (at your option) any later version.
10: *
11: * This library is distributed in the hope that it will be useful,
12: * but WITHOUT ANY WARRANTY; without even the implied warranty of
13: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14: * Lesser General Public License for more details.
15: */
16: package org.geotools.util;
17:
18: // J2SE dependencies
19: import java.util.Collection;
20:
21: /**
22: * Collection that ensures that all elements are assignable to a given base type.
23: * The base {@linkplain #getElement type} is usually specified at collection
24: * construction time.
25: *
26: * @since 2.4
27: * @source $URL: http://svn.geotools.org/geotools/tags/2.4.1/modules/library/metadata/src/main/java/org/geotools/util/CheckedCollection.java $
28: * @version $Id: CheckedCollection.java 25193 2007-04-18 13:37:38Z desruisseaux $
29: * @author Martin Desruisseaux
30: */
31: public interface CheckedCollection extends Collection {
32: /**
33: * Returns the element type.
34: */
35: Class getElementType();
36: }
|