|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Typed<T>
An object with an associated type (i.e., Class), which can be queried
at runtime.
| Method Summary | |
|---|---|
Class<T> |
getType()
Gets the type associated with the object. |
boolean |
supports(T data)
Gets whether this object is compatible with the given data object. |
| Method Detail |
|---|
boolean supports(T data)
Typically, this will be the case when data.getClass() is assignable
to the type associated with the object (i.e., the one returned by
getType()). But individual implementations may have other
requirements beyond class assignability.
Class<T> getType()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||