@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_topology = true && (is_set_topology()); list.add(present_topology); if (present_topology) list.add(topology); boolean present_components = true && (is_set_components()); list.add(present_components); if (present_components) list.add(components); boolean present_tasks = true && (is_set_tasks()); list.add(present_tasks); if (present_tasks) list.add(tasks); boolean present_metrics = true && (is_set_metrics()); list.add(present_metrics); if (present_metrics) list.add(metrics); return list.hashCode(); }
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case TOPOLOGY: return is_set_topology(); case COMPONENTS: return is_set_components(); case TASKS: return is_set_tasks(); case METRICS: return is_set_metrics(); } throw new IllegalStateException(); }
lastComparison = Boolean.valueOf(is_set_components()).compareTo(other.is_set_components()); if (lastComparison != 0) { return lastComparison; if (is_set_components()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.components, other.components); if (lastComparison != 0) {
/** * Performs a deep copy on <i>other</i>. */ public TopologyInfo(TopologyInfo other) { if (other.is_set_topology()) { this.topology = new TopologySummary(other.topology); } if (other.is_set_components()) { List<ComponentSummary> __this__components = new ArrayList<ComponentSummary>(other.components.size()); for (ComponentSummary other_element : other.components) { __this__components.add(new ComponentSummary(other_element)); } this.components = __this__components; } if (other.is_set_tasks()) { List<TaskSummary> __this__tasks = new ArrayList<TaskSummary>(other.tasks.size()); for (TaskSummary other_element : other.tasks) { __this__tasks.add(new TaskSummary(other_element)); } this.tasks = __this__tasks; } if (other.is_set_metrics()) { this.metrics = new TopologyMetric(other.metrics); } }
boolean this_present_components = true && this.is_set_components(); boolean that_present_components = true && that.is_set_components(); if (this_present_components || that_present_components) { if (!(this_present_components && that_present_components))
public void validate() throws org.apache.thrift.TException { // check for required fields if (!is_set_topology()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'topology' is unset! Struct:" + toString()); } if (!is_set_components()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'components' is unset! Struct:" + toString()); } if (!is_set_tasks()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'tasks' is unset! Struct:" + toString()); } if (!is_set_metrics()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'metrics' is unset! Struct:" + toString()); } // check for sub-struct validity if (topology != null) { topology.validate(); } if (metrics != null) { metrics.validate(); } }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_topology = true && (is_set_topology()); list.add(present_topology); if (present_topology) list.add(topology); boolean present_components = true && (is_set_components()); list.add(present_components); if (present_components) list.add(components); boolean present_tasks = true && (is_set_tasks()); list.add(present_tasks); if (present_tasks) list.add(tasks); boolean present_metrics = true && (is_set_metrics()); list.add(present_metrics); if (present_metrics) list.add(metrics); return list.hashCode(); }
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case TOPOLOGY: return is_set_topology(); case COMPONENTS: return is_set_components(); case TASKS: return is_set_tasks(); case METRICS: return is_set_metrics(); } throw new IllegalStateException(); }
/** * Performs a deep copy on <i>other</i>. */ public TopologyInfo(TopologyInfo other) { if (other.is_set_topology()) { this.topology = new TopologySummary(other.topology); } if (other.is_set_components()) { List<ComponentSummary> __this__components = new ArrayList<ComponentSummary>(other.components.size()); for (ComponentSummary other_element : other.components) { __this__components.add(new ComponentSummary(other_element)); } this.components = __this__components; } if (other.is_set_tasks()) { List<TaskSummary> __this__tasks = new ArrayList<TaskSummary>(other.tasks.size()); for (TaskSummary other_element : other.tasks) { __this__tasks.add(new TaskSummary(other_element)); } this.tasks = __this__tasks; } if (other.is_set_metrics()) { this.metrics = new TopologyMetric(other.metrics); } }
lastComparison = Boolean.valueOf(is_set_components()).compareTo(other.is_set_components()); if (lastComparison != 0) { return lastComparison; if (is_set_components()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.components, other.components); if (lastComparison != 0) {
boolean this_present_components = true && this.is_set_components(); boolean that_present_components = true && that.is_set_components(); if (this_present_components || that_present_components) { if (!(this_present_components && that_present_components))
public void validate() throws org.apache.thrift.TException { // check for required fields if (!is_set_topology()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'topology' is unset! Struct:" + toString()); } if (!is_set_components()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'components' is unset! Struct:" + toString()); } if (!is_set_tasks()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'tasks' is unset! Struct:" + toString()); } if (!is_set_metrics()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'metrics' is unset! Struct:" + toString()); } // check for sub-struct validity if (topology != null) { topology.validate(); } if (metrics != null) { metrics.validate(); } }