/** * Get role as string. * * @return string with data of role */ @Override public String toString() { return String.format("ListRole<%s:%s:%s:%s>", System.identityHashCode(this), getName(), this.mode == null ? "" : this.mode == Mode.QUORUM ? this.mode.name().toLowerCase() + "_" + this.quorumSize : this.mode.name().toLowerCase(), this.roles); }