@Test public void testTostring() { Assert.assertEquals("somewhere:666", new KafkaBrokerAddress("somewhere", 666).toString()); }
@Override public String toString() { return _hostName + ":" + _portNumber; }
KafkaBrokerAddress { @Override public String toString() { return _hostName + ":" + _portNumber; } }
KafkaBrokerAddress { @Override public String toString() { return _hostName + ":" + _portNumber; } KafkaBrokerAddress(String hostName, int portNumber); }
KafkaBrokerAddress { @Override public String toString() { return _hostName + ":" + _portNumber; } KafkaBrokerAddress(String hostName, int portNumber); String getHostName(); int getPortNumber(); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode(); static KafkaBrokerAddress valueOf(String brokerAddress); }
KafkaBrokerAddress { @Override public String toString() { return _hostName + ":" + _portNumber; } KafkaBrokerAddress(String hostName, int portNumber); String getHostName(); int getPortNumber(); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode(); static KafkaBrokerAddress valueOf(String brokerAddress); static final Comparator<KafkaBrokerAddress> BY_URL; }