Java 类com.beust.jcommander.converters.IParameterSplitter 实例源码

项目:muJava    文件:JCommander.java   
/**
 * Use the splitter to split the value into multiple values and then convert
 * each of them individually.
 */
private Object convertToList(String value, IStringConverter<?> converter,
    Class<? extends IParameterSplitter> splitterClass)
        throws InstantiationException, IllegalAccessException {
  IParameterSplitter splitter = splitterClass.newInstance();
  List<Object> result = Lists.newArrayList();
  for (String param : splitter.split(value)) {
    result.add(converter.convert(param));
  }
  return result;
}
项目:VarJ    文件:JCommander.java   
/**
 * Use the splitter to split the value into multiple values and then convert
 * each of them individually.
 */
private Object convertToList(String value, IStringConverter<?> converter,
    Class<? extends IParameterSplitter> splitterClass)
        throws InstantiationException, IllegalAccessException {
  IParameterSplitter splitter = splitterClass.newInstance();
  List<Object> result = Lists.newArrayList();
  for (String param : splitter.split(value)) {
    result.add(converter.convert(param));
  }
  return result;
}
项目:SPA    文件:JCommander.java   
/**
 * Use the splitter to split the value into multiple values and then convert
 * each of them individually.
 */
private Object convertToList(String value, IStringConverter<?> converter,
    Class<? extends IParameterSplitter> splitterClass)
        throws InstantiationException, IllegalAccessException {
  IParameterSplitter splitter = splitterClass.newInstance();
  List<Object> result = Lists.newArrayList();
  for (String param : splitter.split(value)) {
    result.add(converter.convert(param));
  }
  return result;
}
项目:SPA    文件:JCommander.java   
/**
 * Use the splitter to split the value into multiple values and then convert
 * each of them individually.
 */
private Object convertToList(String value, IStringConverter<?> converter,
    Class<? extends IParameterSplitter> splitterClass)
        throws InstantiationException, IllegalAccessException {
  IParameterSplitter splitter = splitterClass.newInstance();
  List<Object> result = Lists.newArrayList();
  for (String param : splitter.split(value)) {
    result.add(converter.convert(param));
  }
  return result;
}
项目:Corporatique    文件:JCommander.java   
/**
 * Use the splitter to split the value into multiple values and then convert
 * each of them individually.
 */
private Object convertToList(String value, IStringConverter<?> converter,
                             Class<? extends IParameterSplitter> splitterClass)
        throws InstantiationException, IllegalAccessException {
    IParameterSplitter splitter = splitterClass.newInstance();
    List<Object> result = Lists.newArrayList();
    for (String param : splitter.split(value)) {
        result.add(converter.convert(param));
    }
    return result;
}
项目:java_seqbuster    文件:JCommander.java   
/**
 * Use the splitter to split the value into multiple values and then convert
 * each of them individually.
 */
private Object convertToList(String value, IStringConverter<?> converter,
    Class<? extends IParameterSplitter> splitterClass)
        throws InstantiationException, IllegalAccessException {
  IParameterSplitter splitter = splitterClass.newInstance();
  List<Object> result = Lists.newArrayList();
  for (String param : splitter.split(value)) {
    result.add(converter.convert(param));
  }
  return result;
}
项目:java_seqbuster    文件:JCommander.java   
/**
 * Use the splitter to split the value into multiple values and then convert
 * each of them individually.
 */
private Object convertToList(String value, IStringConverter<?> converter,
    Class<? extends IParameterSplitter> splitterClass)
        throws InstantiationException, IllegalAccessException {
  IParameterSplitter splitter = splitterClass.newInstance();
  List<Object> result = Lists.newArrayList();
  for (String param : splitter.split(value)) {
    result.add(converter.convert(param));
  }
  return result;
}
项目:java_seqbuster    文件:JCommander.java   
/**
 * Use the splitter to split the value into multiple values and then convert
 * each of them individually.
 */
private Object convertToList(String value, IStringConverter<?> converter,
    Class<? extends IParameterSplitter> splitterClass)
        throws InstantiationException, IllegalAccessException {
  IParameterSplitter splitter = splitterClass.newInstance();
  List<Object> result = Lists.newArrayList();
  for (String param : splitter.split(value)) {
    result.add(converter.convert(param));
  }
  return result;
}
项目:sparc    文件:JCommander.java   
/**
 * Use the splitter to split the value into multiple values and then convert
 * each of them individually.
 */
private Object convertToList(String value, IStringConverter<?> converter,
    Class<? extends IParameterSplitter> splitterClass)
        throws InstantiationException, IllegalAccessException {
  IParameterSplitter splitter = splitterClass.newInstance();
  List<Object> result = Lists.newArrayList();
  for (String param : splitter.split(value)) {
    result.add(converter.convert(param));
  }
  return result;
}