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
iff the data is assignable
to the associated type given by getType()
. But individual
implementations may have other requirements beyond class assignability.
Copyright © 2015–2022 SciJava. All rights reserved.