? TypeRule<F,T>
java.lang.Object
org.osgi.util.converter.TypeRule<F,T>
- ????:
F
- The type to convert from.T
- The type to convert to.
- ????????:
TargetRule
Rule implementation that works by passing in type arguments rather than
subclassing. The rule supports specifying both from and to
types. Filtering on the from by the
Rule
implementation.
Filtering on the to is done by the converter customization
mechanism.-
?????
??? -
????
??????????The function to perform the conversion.The target type of this rule.
-
???????
-
TypeRule
Create an instance based on source, target types and a conversion function.- ??:
from
- The type to convert from.to
- The type to convert to.func
- The conversion function to use.
-
-
??????
-
getFunction
????????:TargetRule
The function to perform the conversion.- ???:
getFunction
????TargetRule
- ??:
- The function.
-
getTargetType
????????:TargetRule
The target type of this rule. The conversion function is invoked for each conversion to the target type.- ???:
getTargetType
????TargetRule
- ??:
- The target type.
-