Package com.google.common.base.Objects

Examples of com.google.common.base.Objects.ToStringHelper


    }

    @Override
    public String toString()
    {
        ToStringHelper helper = Objects.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();
    }
View Full Code Here


        return true;
    }

    @Override
    public String toString() {
        final ToStringHelper toString = Objects.toStringHelper(this.getClass());

        toString.add("Version", row.getVersion())
                .add("UUID", getUUID());

        for (final Map.Entry<String, ByteBuffer> entry : getRecords().entrySet()) {
            toString.add("Record", format("%s: %s", entry.getKey(), entry.getValue()));
        }

        return toString.toString();
    }
View Full Code Here

        return avroTableSchema != null ? avroTableSchema.hashCode() : 0;
    }

    @Override
    public String toString() {
        final ToStringHelper helper = Objects.toStringHelper(this.getClass());

        if( avroTableSchema != null ) {
            helper.add("Version", avroTableSchema.getVersion())
                  .add("Columns", avroTableSchema.getColumns())
                  .add("Indices", avroTableSchema.getIndices());
        }

        return helper.toString();
    }
View Full Code Here

        return AvroIndexSchema.newBuilder(avroIndexSchema).build();
    }

    @Override
    public String toString() {
        final ToStringHelper helper = Objects.toStringHelper(this.getClass())
                .add("name", indexName);

        if( avroIndexSchema != null ) {
            helper.add("columns", avroIndexSchema.getColumns())
                  .add("isUnique", avroIndexSchema.getIsUnique());
        }

        return helper.toString();
    }
View Full Code Here

        return AvroColumnSchema.newBuilder(avroColumnSchema).build();
    }

    @Override
    public String toString() {
        final ToStringHelper helper = Objects.toStringHelper(this.getClass())
                .add("name", columnName);

        if (avroColumnSchema != null) {
            helper.add("type", avroColumnSchema.getType())
                    .add("isNullable", avroColumnSchema.getIsNullable())
                    .add("isAutoIncrement", avroColumnSchema.getIsAutoIncrement())
                    .add("maxLength", avroColumnSchema.getMaxLength())
                    .add("precision", avroColumnSchema.getPrecision())
                    .add("scale", avroColumnSchema.getScale());
        }

        return helper.toString();
    }
View Full Code Here

    }

    @Override
    public String toString()
    {
        ToStringHelper helper = Objects.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);

        return helper.toString();
    }
View Full Code Here

    }

    @Override
    public String toString()
    {
        ToStringHelper helper = Objects.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);

        return helper.toString();
    }
View Full Code Here

        return this;
    }

    @Override
    public String toString() {
        ToStringHelper helper = Objects.toStringHelper(getClass()).add("timestamp", timestamp);
        helper.addValue(wildcardAware ? "wildcard aware" : "wildcard unaware");
        helper.addValue(caseSensitive ? "case sensitive" : "case insensitive");
        helper.addValue(andJoined ? "and-joined" : "or-joined");
        helper.add("contextId", contextId);
        for (Map.Entry<String, Set<Object>> entry : parameters.entrySet()) {
            for (Object value : entry.getValue()) {
                helper.add(entry.getKey(), value);
            }
        }
        return helper.omitNullValues().toString();
    }
View Full Code Here

   public String toString() {
      return string().toString();
   }

   protected ToStringHelper string() {
      ToStringHelper helper = Objects.toStringHelper("").omitNullValues().add("image", image).add("hardware", hardware)
               .add("location", location);
      if (!options.equals(defaultOptions()))
         helper.add("options", options);
      return helper;
   }
View Full Code Here

   }

   // equals and toString from super are sufficient to establish identity equivalence

   protected ToStringHelper string() {
      ToStringHelper helper = computeToStringPrefix();
      helper.add("os", getOperatingSystem()).add("description", getDescription()).add("version", getVersion())
               .add("status", formatStatus(this))
               .add("loginUser", defaultCredentials != null ? defaultCredentials.identity : null);
      return addComputeToStringSuffix(helper);
   }
View Full Code Here

TOP

Related Classes of com.google.common.base.Objects.ToStringHelper

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.