com.generationjava.collections.typed
Interface TypedStructure

All Known Implementing Classes:
AbstractTypedStructure, TypedList

public interface TypedStructure

A structure which only allows contents of a particular type.


Method Summary
 void checkType(java.util.Collection coll)
           
 void checkType(java.lang.Object obj)
           
 java.lang.Class getType()
           
 void setType(java.lang.Class type)
           
 

Method Detail

checkType

void checkType(java.lang.Object obj)
               throws IllegalTypeException
Throws:
IllegalTypeException

checkType

void checkType(java.util.Collection coll)
               throws IllegalTypeException
Throws:
IllegalTypeException

setType

void setType(java.lang.Class type)

getType

java.lang.Class getType()