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.List;
00020
00021 import org.ros.master.client.TopicType;
00022
00023 import com.google.common.collect.Lists;
00024
00031 public class TopicTypeListResultFactory implements
00032 ResultFactory<List<TopicType>> {
00033
00034 @Override
00035 public List<TopicType> newFromValue(Object value) {
00036 List<TopicType> topics = Lists.newArrayList();
00037
00038 for (Object pair : (Object[]) value) {
00039 topics.add(new TopicType((String) ((Object[]) pair)[0],
00040 (String) ((Object[]) pair)[1]));
00041 }
00042
00043 return topics;
00044 }
00045
00046 }