Class TypeCastCollection<T>

java.lang.Object
uk.ac.ebi.utils.collections.TypeCastCollection<T>
Type Parameters:
T - the target type for the collection.
All Implemented Interfaces:
Iterable<T>, Collection<T>

public class TypeCastCollection<T> extends Object implements Collection<T>
Allows to type-cast the collection of super-type T1 into the sub-type T (i.e., T extends T1), which is not permitted by the Java generics. The class is simply the adapter pattern wrapping the converted collection. date: Jul 29, 2008
Author:
brandizi