|
|||||||||
| 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)
By default, this method will return true always, since the type is
known to be compatible. 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 | ||||||||