public interface Type
Modifier and Type | Method and Description |
---|---|
Instance |
getInstance(java.lang.String key)
Gets the instance associated with this key, or null if there is none
|
java.util.Map<java.lang.String,Instance> |
getInstances()
Returns a read-only map of the instances that are associated with this type
|
java.lang.Object |
getMetadata()
Gets information about this type.
|
java.lang.String |
getName()
A unique identifier for this type
|
void |
setMetadata(java.lang.Object metadata)
Sets an object containing information about this
type.
|
java.lang.String getName()
java.util.Map<java.lang.String,Instance> getInstances()
Instance getInstance(java.lang.String key)
key
- The non-null key for the instancejava.lang.Object getMetadata()
void setMetadata(java.lang.Object metadata)
metadata
- The possibly null metadata
to be associated with this type