public interface Typed<T>
Class), which can be queried
at runtime.| Modifier and Type | Method and Description |
|---|---|
Class<T> |
getType()
Gets the type associated with the object.
|
default boolean |
supports(T data)
Gets whether this object is compatible with the given data object.
|
default 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.
Copyright © 2009–2016 SciJava. All rights reserved.