T
- the implemented interface for each enumerated classpublic interface ClassEnum<T>
Modifier and Type | Method and Description |
---|---|
boolean |
isInstance(T object)
Indicates whether the specified object is an instance of this enumerated class.
|
T |
newInstance()
Creates a new instance of the enumerated class.
|
T newInstance() throws java.lang.Exception
java.lang.Exception
- if a new instance could not be instantiated.boolean isInstance(T object)
object
- an instance