public TopologyImpl(final TopologyResponse response) { brokers = response.getBrokersList().stream().map(BrokerInfoImpl::new).collect(Collectors.toList()); clusterSize = response.getClusterSize(); partitionsCount = response.getPartitionsCount(); replicationFactor = response.getReplicationFactor(); }
public TopologyImpl(final TopologyResponse response) { brokers = response.getBrokersList().stream().map(BrokerInfoImpl::new).collect(Collectors.toList()); clusterSize = response.getClusterSize(); partitionsCount = response.getPartitionsCount(); replicationFactor = response.getReplicationFactor(); }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getBrokersCount() > 0) { hash = (37 * hash) + BROKERS_FIELD_NUMBER; hash = (53 * hash) + getBrokersList().hashCode(); } hash = (37 * hash) + CLUSTERSIZE_FIELD_NUMBER; hash = (53 * hash) + getClusterSize(); hash = (37 * hash) + PARTITIONSCOUNT_FIELD_NUMBER; hash = (53 * hash) + getPartitionsCount(); hash = (37 * hash) + REPLICATIONFACTOR_FIELD_NUMBER; hash = (53 * hash) + getReplicationFactor(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
setPartitionsCount(other.getPartitionsCount()); if (other.getReplicationFactor() != 0) { setReplicationFactor(other.getReplicationFactor());
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.zeebe.gateway.protocol.GatewayOuterClass.TopologyResponse)) { return super.equals(obj); } io.zeebe.gateway.protocol.GatewayOuterClass.TopologyResponse other = (io.zeebe.gateway.protocol.GatewayOuterClass.TopologyResponse) obj; boolean result = true; result = result && getBrokersList() .equals(other.getBrokersList()); result = result && (getClusterSize() == other.getClusterSize()); result = result && (getPartitionsCount() == other.getPartitionsCount()); result = result && (getReplicationFactor() == other.getReplicationFactor()); result = result && unknownFields.equals(other.unknownFields); return result; }