Search in sources :

Example 16 with ToStringHelper

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();
}
Also used : ToStringHelper(com.google.common.base.MoreObjects.ToStringHelper)

Example 17 with ToStringHelper

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();
}
Also used : ToStringHelper(com.google.common.base.MoreObjects.ToStringHelper)

Example 18 with ToStringHelper

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();
}
Also used : ToStringHelper(com.google.common.base.MoreObjects.ToStringHelper)

Example 19 with ToStringHelper

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();
}
Also used : ToStringHelper(com.google.common.base.MoreObjects.ToStringHelper)

Example 20 with ToStringHelper

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();
}
Also used : ToStringHelper(com.google.common.base.MoreObjects.ToStringHelper)

Aggregations

ToStringHelper (com.google.common.base.MoreObjects.ToStringHelper)23 Logger (com.facebook.airlift.log.Logger)1 FINAL (com.facebook.presto.bytecode.Access.FINAL)1 PRIVATE (com.facebook.presto.bytecode.Access.PRIVATE)1 PUBLIC (com.facebook.presto.bytecode.Access.PUBLIC)1 Access.a (com.facebook.presto.bytecode.Access.a)1 BytecodeBlock (com.facebook.presto.bytecode.BytecodeBlock)1 BytecodeNode (com.facebook.presto.bytecode.BytecodeNode)1 CallSiteBinder (com.facebook.presto.bytecode.CallSiteBinder)1 ClassDefinition (com.facebook.presto.bytecode.ClassDefinition)1 FieldDefinition (com.facebook.presto.bytecode.FieldDefinition)1 MethodDefinition (com.facebook.presto.bytecode.MethodDefinition)1 Parameter (com.facebook.presto.bytecode.Parameter)1 Parameter.arg (com.facebook.presto.bytecode.Parameter.arg)1 ParameterizedType (com.facebook.presto.bytecode.ParameterizedType)1 ParameterizedType.type (com.facebook.presto.bytecode.ParameterizedType.type)1 Scope (com.facebook.presto.bytecode.Scope)1 Variable (com.facebook.presto.bytecode.Variable)1 ForLoop (com.facebook.presto.bytecode.control.ForLoop)1 IfStatement (com.facebook.presto.bytecode.control.IfStatement)1