Class StringToCharArrayConverter

java.lang.Object
org.apache.dubbo.common.convert.StringToCharArrayConverter
All Implemented Interfaces:
Comparable<Prioritized>, Converter<String,char[]>, StringConverter<char[]>, Prioritized

public class StringToCharArrayConverter extends Object implements StringConverter<char[]>
The class to convert String to char[]
Since:
2.7.6
  • Constructor Details

    • StringToCharArrayConverter

      public StringToCharArrayConverter()
  • Method Details

    • convert

      public char[] convert(String source)
      Description copied from interface: Converter
      Convert the source-typed value to the target-typed value
      Specified by:
      convert in interface Converter<String,char[]>
      Parameters:
      source - the source-typed value
      Returns:
      the target-typed value
    • getPriority

      public int getPriority()
      Description copied from interface: Prioritized
      Get the priority
      Specified by:
      getPriority in interface Prioritized
      Returns:
      the default is Prioritized.NORMAL_PRIORITY