MCPcopy Create free account
hub / github.com/apache/storm / compareTo

Method compareTo

storm-client/src/jvm/org/apache/storm/generated/Bolt.java:301–330  ·  view source on GitHub ↗
(Bolt other)

Source from the content-addressed store, hash-verified

299 }
300
301 @Override
302 public int compareTo(Bolt other) {
303 if (!getClass().equals(other.getClass())) {
304 return getClass().getName().compareTo(other.getClass().getName());
305 }
306
307 int lastComparison = 0;
308
309 lastComparison = java.lang.Boolean.compare(is_set_bolt_object(), other.is_set_bolt_object());
310 if (lastComparison != 0) {
311 return lastComparison;
312 }
313 if (is_set_bolt_object()) {
314 lastComparison = org.apache.storm.thrift.TBaseHelper.compareTo(this.bolt_object, other.bolt_object);
315 if (lastComparison != 0) {
316 return lastComparison;
317 }
318 }
319 lastComparison = java.lang.Boolean.compare(is_set_common(), other.is_set_common());
320 if (lastComparison != 0) {
321 return lastComparison;
322 }
323 if (is_set_common()) {
324 lastComparison = org.apache.storm.thrift.TBaseHelper.compareTo(this.common, other.common);
325 if (lastComparison != 0) {
326 return lastComparison;
327 }
328 }
329 return 0;
330 }
331
332 @org.apache.storm.thrift.annotation.Nullable
333 @Override

Callers 1

compareMethod · 0.45

Calls 5

is_set_bolt_objectMethod · 0.95
is_set_commonMethod · 0.95
getNameMethod · 0.65
equalsMethod · 0.45
compareMethod · 0.45

Tested by

no test coverage detected