public static interface InstanceContent.Convertor<T,R>
Modifier and Type | Method | Description |
---|---|---|
R |
convert(T obj) |
Convert obj to other object.
|
String |
displayName(T obj) |
The human presentable name for the object.
|
String |
id(T obj) |
Computes the ID of the resulted object.
|
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 objectClass<? extends R> type(T obj)
Lookup.Item.getType()
obj
- the registered objectString id(T obj)
Lookup.Item.getId()
.obj
- the registered objectString displayName(T obj)
Lookup.Item.getDisplayName()
.obj
- the registered objectBuilt on April 24 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.