com.generationjava.collections.typed
Class AbstractTypedStructure
java.lang.Object
|
+--com.generationjava.collections.typed.AbstractTypedStructure
- All Implemented Interfaces:
- TypedStructure
- Direct Known Subclasses:
- TypedList, TypedMap, TypedSet
- 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 |
clone, equals, finalize, 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
IllegalTypeException
checkType
public void checkType(java.lang.Class type,
java.lang.Object obj)
throws IllegalTypeException
IllegalTypeException
checkType
public void checkType(java.util.Collection coll)
throws IllegalTypeException
- Specified by:
checkType in interface TypedStructure
IllegalTypeException
checkType
public void checkType(java.lang.Class type,
java.util.Collection coll)
throws IllegalTypeException
IllegalTypeException
Copyright © 2000-2003 GenerationJava. All Rights Reserved.