public String getShortDescription() { return "{" + "address=" + address + ", type=" + type + (tags.isEmpty() ? "" : tags) + (state == Connected ? (", averagePingTime=" + NANOSECONDS.convert(averagePingTimeNanos, MILLISECONDS) + " ms") : "") + ", state=" + state + '}'; }