Java 类org.apache.thrift7.TBase 实例源码

项目:Mastering-Mesos    文件:LocalStateShim.java   
public String get(String key) {
  TBase tBase = _state.get(key);
  if (tBase != null) {
    JavaObject jo = ((JavaObject) tBase);
    ComponentObject co = ComponentObject.java_object(jo);
    List<JavaObjectArg> l = jo.get_args_list();
    if (l != null && l.size() >= 0 && l.get(0) != null) {
      return l.get(0).get_string_arg();
    }
  }
  return null;
}