Class TypeCheckingList

java.lang.Object
net.didion.jwnl.util.TypeCheckingList
All Implemented Interfaces:
Cloneable, Iterable, Collection, List, DeepCloneable
Direct Known Subclasses:
PointerTargetNodeList, RelationshipList

public class TypeCheckingList extends Object implements List, DeepCloneable
Wrapper for a list that checks the type of arguments before putting them in the list. It also does type-checking on methods which iterate over the list so that they fail fast if the argument is not of the correct type.