Package com.google.common.base.Objects

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


   public int hashCode() {
      return Objects.hashCode(keyName, securityGroupNames, metadata, personality, adminPass, networks, availabilityZone);
   }

   protected ToStringHelper string() {
      ToStringHelper toString = Objects.toStringHelper("").omitNullValues();
      toString.add("keyName", keyName);
      if (securityGroupNames.size() > 0)
         toString.add("securityGroupNames", securityGroupNames);
      if (metadata.size() > 0)
         toString.add("metadata", metadata);
      if (personality.size() > 0)
         toString.add("personality", personality);
      if (adminPass != null)
         toString.add("adminPassPresent", true);
      if (diskConfig != null)
         toString.add("diskConfig", diskConfig);
      toString.add("userData", userData == null ? null : new String(userData));
      if (!networks.isEmpty())
         toString.add("networks", networks);
      toString.add("availability_zone", availabilityZone == null ? null : availabilityZone);
      return toString;
   }
View Full Code Here


   public int hashCode() {
      return Objects.hashCode(tenant, password, email, enabled);
   }

   protected ToStringHelper string() {
      ToStringHelper toString = Objects.toStringHelper("").omitNullValues();
      toString.add("tenant", tenant);
      toString.add("password", password);
      toString.add("email", email);
      toString.add("enabled", Boolean.valueOf(enabled));
      return toString;
   }
View Full Code Here

   public int hashCode() {
      return Objects.hashCode(description, enabled);
   }

   protected ToStringHelper string() {
      ToStringHelper toString = Objects.toStringHelper("").omitNullValues();
      toString.add("description", description);
      toString.add("enabled", Boolean.valueOf(enabled));
      return toString;
   }
View Full Code Here

   public int hashCode() {
      return Objects.hashCode(name, description, enabled);
   }

   protected ToStringHelper string() {
      ToStringHelper toString = Objects.toStringHelper("").omitNullValues();
      toString.add("name", name);
      toString.add("description", description);
      toString.add("enabled", Boolean.valueOf(enabled));
      return toString;
   }
View Full Code Here

   public int hashCode() {
      return Objects.hashCode(name, email, enabled, password);
   }

   protected ToStringHelper string() {
      ToStringHelper toString = Objects.toStringHelper("").omitNullValues();
      toString.add("name", name);
      toString.add("email", email);
      toString.add("password", password);
      toString.add("enabled", Boolean.valueOf(enabled));
      return toString;
   }
View Full Code Here

    }

    /** {@inheritDoc} */
    @Override
    public String toString() {
      final ToStringHelper helper = Objects.toStringHelper(this).add("name", getColumnName());
      if (mMaxVersions != 0) {
        helper.add("max_versions", mMaxVersions);
      }
      if (mFilter != null) {
        helper.add("filter", mFilter);
      }
      if (mPageSize != PAGING_DISABLED) {
        helper.add("page_size", mPageSize);
      }
      if (mReaderSpec != null) {
        helper.add("reader_spec", mReaderSpec);
      }
      return helper.toString();
    }
View Full Code Here

  }

  /** {@inheritDoc} */
  @Override
  public String toString() {
    final ToStringHelper helper = Objects.toStringHelper(DecodedCell.class);
    if (mWriterSchema == null) {
      helper.add("counter", mData);
    } else {
      helper
          .add("avro", mData)
          .add("writerSchema", mWriterSchema);
    }
    return helper.toString();
  }
View Full Code Here

      return this.begin == that.begin && this.end == that.end;
    }

    @Override
    public String toString() {
      ToStringHelper helper = Objects.toStringHelper(this);
      helper.add("begin", this.begin);
      helper.add("end", this.end);
      return helper.toString();
    }
View Full Code Here

    this(dataWriterClass, new Object[0], trainingArguments);
  }

  @Override
  public String toString() {
    ToStringHelper helper = Objects.toStringHelper(this);
    helper.add("dataWriterClass", this.dataWriterClass.getName());
    helper.add("configurationParameters", Arrays.asList(this.configurationParameters));
    helper.add("trainingArguments", Arrays.asList(this.trainingArguments));
    return helper.toString();
  }
View Full Code Here

        && Objects.equal(this.annotationSlots, that.annotationSlots);
  }

  @Override
  public String toString() {
    ToStringHelper builder = Objects.toStringHelper(this);
    builder.add("id", this.id);
    builder.add("spans", this.spans);
    builder.add("spannedText", this.spannedText);
    builder.add("type", this.type);
    builder.add("stringSlots", this.stringSlots);
    builder.add("booleanSlots", this.booleanSlots);
    builder.add("mentionSlots", this.annotationSlots);
    return builder.toString();
  }
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.