? 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

public class TypeRule<F,T> extends Object implements 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.
  • ???????

    • TypeRule

      public TypeRule(Type from, Type to, Function<F,T> func)
      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.
  • ??????