use of com.google.common.base.MoreObjects.toStringHelper in project openscoring by openscoring.
the class BatchEvaluationResponse method toString.
@Override
public String toString() {
String message = getMessage();
if (message != null) {
return super.toString();
}
ToStringHelper stringHelper = MoreObjects.toStringHelper(getClass()).add("id", getId()).add("responses", getResponses());
return stringHelper.toString();
}
use of com.google.common.base.MoreObjects.toStringHelper in project openscoring by openscoring.
the class MetricSetResponse method toString.
@Override
public String toString() {
String message = getMessage();
if (message != null) {
return super.toString();
}
ToStringHelper stringHelper = MoreObjects.toStringHelper(getClass()).add("version", getVersion()).add("counters", getCounters()).add("gauges", getGauges()).add("histograms", getHistograms()).add("meters", getMeters()).add("timers", getTimers());
return stringHelper.toString();
}
use of com.google.common.base.MoreObjects.toStringHelper in project metasfresh-webui-api by metasfresh.
the class DocumentFieldChange method toString.
@Override
public String toString() {
final ToStringHelper toStringBuilder = MoreObjects.toStringHelper(this).omitNullValues().add("fieldName", fieldName).add("key", key ? Boolean.TRUE : null).add("privateField", !publicField ? Boolean.TRUE : null).add("advancedField", advancedField ? Boolean.TRUE : null).add("widgetType", widgetType).add("validStatus", validStatus);
if (valueSet) {
toStringBuilder.add("value", value == null ? "<NULL>" : value);
toStringBuilder.add("valueReason", valueReason);
}
if (readonly != null) {
toStringBuilder.add("readonly", readonly);
toStringBuilder.add("readonlyReason", readonlyReason);
}
if (mandatory != null) {
toStringBuilder.add("mandatory", mandatory);
toStringBuilder.add("mandatoryReason", mandatoryReason);
}
if (displayed != null) {
toStringBuilder.add("displayed", displayed);
toStringBuilder.add("displayedReason", displayedReason);
}
if (lookupValuesStale != null) {
toStringBuilder.add("lookupValuesStale", lookupValuesStale);
toStringBuilder.add("lookupValuesStaleReason", lookupValuesStaleReason);
}
if (debugProperties != null && !debugProperties.isEmpty()) {
toStringBuilder.add("debugProperties", debugProperties);
}
return toStringBuilder.toString();
}
use of com.google.common.base.MoreObjects.toStringHelper in project batfish by batfish.
the class AclIpSpaceLine method toString.
@Override
public String toString() {
ToStringHelper helper = MoreObjects.toStringHelper(getClass());
if (_action != LineAction.ACCEPT) {
helper.add("action", _action);
}
helper.add("ipSpace", _ipSpace);
return helper.toString();
}
use of com.google.common.base.MoreObjects.toStringHelper in project presto by prestodb.
the class CassandraColumnHandle method toString.
@Override
public String toString() {
ToStringHelper helper = toStringHelper(this).add("connectorId", connectorId).add("name", name).add("ordinalPosition", ordinalPosition).add("cassandraType", cassandraType);
if (typeArguments != null && !typeArguments.isEmpty()) {
helper.add("typeArguments", typeArguments);
}
helper.add("partitionKey", partitionKey).add("clusteringKey", clusteringKey).add("indexed", indexed).add("hidden", hidden);
return helper.toString();
}
Aggregations