Search in sources :

Example 11 with ToStringHelper

use of com.google.common.base.MoreObjects.ToStringHelper in project gitiles by GerritCodeReview.

the class GitilesView method toString.

@Override
public String toString() {
    ToStringHelper b = toStringHelper(type.toString()).omitNullValues().add("host", hostName).add("servlet", servletPath).add("prefix", repositoryPrefix).add("repo", repositoryName).add("rev", revision).add("old", oldRevision).add("path", path).add("extension", extension);
    if (!params.isEmpty()) {
        b.add("params", params);
    }
    b.add("anchor", anchor);
    return b.toString();
}
Also used : ToStringHelper(com.google.common.base.MoreObjects.ToStringHelper)

Example 12 with ToStringHelper

use of com.google.common.base.MoreObjects.ToStringHelper in project DynamicSurroundings by OreCruncher.

the class DimensionInfo method toString.

@Override
@Nonnull
public String toString() {
    final ToStringHelper builder = MoreObjects.toStringHelper(this);
    builder.add("id", this.dimensionId);
    builder.add("name", this.name);
    builder.add("seaLevel", this.seaLevel);
    builder.add("cloudHeight", this.cloudHeight);
    builder.add("skyHeight", this.skyHeight);
    builder.add("haze", this.hasHaze);
    builder.add("aurora", this.hasAuroras);
    builder.add("weather", this.hasWeather);
    builder.add("fog", this.hasFog);
    return builder.toString();
}
Also used : ToStringHelper(com.google.common.base.MoreObjects.ToStringHelper) Nonnull(javax.annotation.Nonnull)

Example 13 with ToStringHelper

use of com.google.common.base.MoreObjects.ToStringHelper in project snow-owl by b2ihealthcare.

the class SnomedRefSetMemberFragment method toString.

@Override
public String toString() {
    final ToStringHelper toStringHelper = MoreObjects.toStringHelper(this).add("uuid", uuid).add("source ID", sourceId);
    if (null != targetId) {
        toStringHelper.add("target ID", targetId);
    }
    toStringHelper.add("active", active);
    return toStringHelper.toString();
}
Also used : ToStringHelper(com.google.common.base.MoreObjects.ToStringHelper)

Example 14 with ToStringHelper

use of com.google.common.base.MoreObjects.ToStringHelper in project openscoring by openscoring.

the class ModelResponse method toString.

@Override
public String toString() {
    String message = getMessage();
    if (message != null) {
        return super.toString();
    }
    ToStringHelper stringHelper = MoreObjects.toStringHelper(getClass()).add("id", getId()).add("miningFunction", getMiningFunction()).add("summary", getSummary()).add("properties", getProperties()).add("schema", getSchema());
    return stringHelper.toString();
}
Also used : ToStringHelper(com.google.common.base.MoreObjects.ToStringHelper)

Example 15 with ToStringHelper

use of com.google.common.base.MoreObjects.ToStringHelper in project openscoring by openscoring.

the class BatchModelResponse method toString.

@Override
public String toString() {
    String message = getMessage();
    if (message != null) {
        return super.toString();
    }
    ToStringHelper stringHelper = MoreObjects.toStringHelper(getClass()).add("responses", getResponses());
    return stringHelper.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