use of com.google.common.base.MoreObjects.toStringHelper in project pinot by linkedin.
the class PinotThirdEyeClientConfig method toString.
@Override
public String toString() {
ToStringHelper stringHelper = MoreObjects.toStringHelper(PinotThirdEyeClientConfig.class);
stringHelper.add("brokerUrl", brokerUrl).add("clusterName", clusterName).add("controllerHost", controllerHost).add("controllerPort", controllerPort).add("zookeeperUrl", zookeeperUrl);
return stringHelper.toString();
}
use of com.google.common.base.MoreObjects.toStringHelper in project google-cloud-java by GoogleCloudPlatform.
the class ByteArray method toString.
@Override
public String toString() {
ToStringHelper toStringHelper = MoreObjects.toStringHelper(this);
StringBuilder stBuilder = new StringBuilder();
for (int i = 0; i < Math.min(256, byteString.size()); i++) {
stBuilder.append(String.format("%02x", byteString.byteAt(i)));
}
if (byteString.size() > 256) {
stBuilder.append("...");
}
return toStringHelper.add("bytes", stBuilder.toString()).toString();
}
use of com.google.common.base.MoreObjects.toStringHelper in project google-cloud-java by GoogleCloudPlatform.
the class Blob method toString.
@Override
public String toString() {
ToStringHelper toStringHelper = MoreObjects.toStringHelper(this);
StringBuilder stBuilder = new StringBuilder();
for (int i = 0; i < Math.min(256, byteString.size()); i++) {
stBuilder.append(String.format("%02x", byteString.byteAt(i)));
}
if (byteString.size() > 256) {
stBuilder.append("...");
}
return toStringHelper.add("bytes", stBuilder.toString()).toString();
}
use of com.google.common.base.MoreObjects.toStringHelper in project atlasdb by palantir.
the class RangeRequest method toString.
@Override
public String toString() {
ToStringHelper helper = MoreObjects.toStringHelper(getClass()).omitNullValues();
PtBytes.addIfNotEmpty(helper, "startInclusive", startInclusive);
PtBytes.addIfNotEmpty(helper, "endExclusive", endExclusive);
if (columns != null && !columns.isEmpty()) {
helper.add("columns", FluentIterable.from(columns).filter(Predicates.notNull()).transform(PtBytes.BYTES_TO_HEX_STRING));
}
helper.add("batchHint", batchHint);
helper.add("reverse", reverse);
return helper.toString();
}
use of com.google.common.base.MoreObjects.toStringHelper in project openscoring by openscoring.
the class EvaluationResponse method toString.
@Override
public String toString() {
String message = getMessage();
if (message != null) {
return super.toString();
}
ToStringHelper stringHelper = MoreObjects.toStringHelper(getClass()).add("id", getId()).add("result", getResult());
return stringHelper.toString();
}
Aggregations