com.generationjava.collections.typed
Class AbstractTypedStructure
java.lang.Object
com.generationjava.collections.typed.AbstractTypedStructure
- All Implemented Interfaces:
- TypedStructure
- Direct Known Subclasses:
- TypedList
public class AbstractTypedStructure
- extends java.lang.Object
- implements TypedStructure
A structure that has a type. Provides methods to check the type.
Method Summary |
void |
checkType(java.lang.Class type,
java.util.Collection coll)
|
void |
checkType(java.lang.Class type,
java.lang.Object obj)
|
void |
checkType(java.util.Collection coll)
|
void |
checkType(java.lang.Object obj)
|
java.lang.Class |
getType()
|
void |
setType(java.lang.Class type)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractTypedStructure
public AbstractTypedStructure()
setType
public void setType(java.lang.Class type)
- Specified by:
setType
in interface TypedStructure
getType
public java.lang.Class getType()
- Specified by:
getType
in interface TypedStructure
checkType
public void checkType(java.lang.Object obj)
throws IllegalTypeException
- Specified by:
checkType
in interface TypedStructure
- Throws:
IllegalTypeException
checkType
public void checkType(java.lang.Class type,
java.lang.Object obj)
throws IllegalTypeException
- Throws:
IllegalTypeException
checkType
public void checkType(java.util.Collection coll)
throws IllegalTypeException
- Specified by:
checkType
in interface TypedStructure
- Throws:
IllegalTypeException
checkType
public void checkType(java.lang.Class type,
java.util.Collection coll)
throws IllegalTypeException
- Throws:
IllegalTypeException