Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 package org.ros.internal.node.response;
00018
00019 import java.util.Arrays;
00020 import java.util.List;
00021
00022 import com.google.common.collect.Lists;
00023
00027 public class StringListResultFactory implements ResultFactory<List<String>> {
00028
00029 @Override
00030 public List<String> newFromValue(Object value) {
00031 List<String> strings = Lists.newArrayList();
00032 List<Object> objects = Arrays.asList((Object[]) value);
00033 for (Object topic : objects) {
00034 strings.add((String) topic);
00035 }
00036 return strings;
00037 }
00038 }