public static interface InstanceContent.Convertor<T,R>
| Modifier and Type | Method | Description |
|---|---|---|
R |
convert(T obj) |
Convert obj to other object.
|
java.lang.String |
displayName(T obj) |
The human presentable name for the object.
|
java.lang.String |
id(T obj) |
Computes the ID of the resulted object.
|
java.lang.Class<? extends R> |
type(T obj) |
Return type of converted object.
|
R convert(T obj)
Lookup.Item.getInstance() method itself. However the
method can be called more than once because instance is held
just by weak reference.obj - the registered objectjava.lang.Class<? extends R> type(T obj)
Lookup.Item.getType()obj - the registered objectjava.lang.String id(T obj)
Lookup.Item.getId().obj - the registered objectjava.lang.String displayName(T obj)
Lookup.Item.getDisplayName().obj - the registered objectBuilt on April 24 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.