Modifier and Type | Method and Description |
---|---|
Instance |
getInstance(String key)
Gets the instance associated with this key, or null if there is none
|
Map<String,Instance> |
getInstances()
Returns a read-only map of the instances that are associated with this type
|
Object |
getMetadata()
Gets information about this type.
|
String |
getName()
A unique identifier for this type
|
void |
setMetadata(Object metadata)
Sets an object containing information about this
type.
|
String |
toString() |
public String getName()
Type
public Map<String,Instance> getInstances()
Type
getInstances
in interface Type
public Instance getInstance(String key)
Type
getInstance
in interface Type
key
- The non-null key for the instancepublic Object getMetadata()
Type
getMetadata
in interface Type
public void setMetadata(Object metadata)
Type
setMetadata
in interface Type
metadata
- The possibly null metadata
to be associated with this typeCopyright © 2009-2017, Oracle and/or its affiliates. All Rights Reserved.