Package org.osgi.util.converter
Interface Converter
@ProviderType
public interface Converter
The Converter service is used to start a conversion. The service is obtained
from the service registry. The conversion is then completed via the
Converting interface that has methods to specify the target type.
- "ThreadSafe"
-
Method Summary
Modifier and TypeMethodDescriptionStart a conversion for the given object.function()
Start defining a function that can perform given conversions.Obtain a builder to create a modified converter based on this converter.
-
Method Details
-
convert
Start a conversion for the given object.- Parameters:
obj
- The object that should be converted.- Returns:
- A
Converting
object to complete the conversion.
-
function
Functioning function()Start defining a function that can perform given conversions.- Returns:
- A
Functioning
object to complete the definition.
-
newConverterBuilder
ConverterBuilder newConverterBuilder()Obtain a builder to create a modified converter based on this converter. For more details see theConverterBuilder
interface.- Returns:
- A new Converter Builder.
-