@Test public void testEqualsWithNull() { List<TopicPartition> linkedList = new LinkedList<TopicPartition>(); KafkaTopicAssignment kafkaTopicAssignment = new KafkaTopicAssignment(null, linkedList); assertFalse(kafkaTopicAssignment.equals(null)); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; KafkaTopicAssignment other = (KafkaTopicAssignment) obj; if (assignments == null) { if (other.assignments != null) return false; } else if (!assignments.equals(other.assignments)) return false; if (replicaSetID == null) { if (other.replicaSetID != null) return false; } else if (!replicaSetID.equals(other.replicaSetID)) return false; return true; }
KafkaTopicAssignment { @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; KafkaTopicAssignment other = (KafkaTopicAssignment) obj; if (assignments == null) { if (other.assignments != null) return false; } else if (!assignments.equals(other.assignments)) return false; if (replicaSetID == null) { if (other.replicaSetID != null) return false; } else if (!replicaSetID.equals(other.replicaSetID)) return false; return true; } }
KafkaTopicAssignment { @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; KafkaTopicAssignment other = (KafkaTopicAssignment) obj; if (assignments == null) { if (other.assignments != null) return false; } else if (!assignments.equals(other.assignments)) return false; if (replicaSetID == null) { if (other.replicaSetID != null) return false; } else if (!replicaSetID.equals(other.replicaSetID)) return false; return true; } KafkaTopicAssignment(Integer replicaSetID, List<TopicPartition> assignments); }
KafkaTopicAssignment { @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; KafkaTopicAssignment other = (KafkaTopicAssignment) obj; if (assignments == null) { if (other.assignments != null) return false; } else if (!assignments.equals(other.assignments)) return false; if (replicaSetID == null) { if (other.replicaSetID != null) return false; } else if (!replicaSetID.equals(other.replicaSetID)) return false; return true; } KafkaTopicAssignment(Integer replicaSetID, List<TopicPartition> assignments); @Override int hashCode(); @Override boolean equals(Object obj); }
KafkaTopicAssignment { @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; KafkaTopicAssignment other = (KafkaTopicAssignment) obj; if (assignments == null) { if (other.assignments != null) return false; } else if (!assignments.equals(other.assignments)) return false; if (replicaSetID == null) { if (other.replicaSetID != null) return false; } else if (!replicaSetID.equals(other.replicaSetID)) return false; return true; } KafkaTopicAssignment(Integer replicaSetID, List<TopicPartition> assignments); @Override int hashCode(); @Override boolean equals(Object obj);  }