Guava MoreObjects.ToStringHelper - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Guava MoreObjects.ToStringHelper class.

This code example shows how to use the following methods:add, toString
    { 
        return Objects.hash(
                connectorId,
                name,
                hidden);
    } 
 
    @Override 
    public boolean equals(Object obj)
    { 
        if (this == obj) {
            return true; 
        } 
        if (obj == null || getClass() != obj.getClass()) {
            return false; 
        } 
        MongoColumnHandle other = (MongoColumnHandle) obj;
        return Objects.equals(this.connectorId, other.connectorId) &&
                Objects.equals(this.type, other.type) &&
                Objects.equals(this.name, other.name);

7
CodeRank
Experience pair programming with AI  Get Codota for Java
This code example shows how to use the following methods:add
    } 
 
    @JsonProperty 
    public int getOrdinalPosition() 
    { 
        return ordinalPosition;
    } 
 
    @JsonProperty 
    public CassandraType getCassandraType()
    { 
        return cassandraType;
    } 
 
    @JsonProperty 
    public List<CassandraType> getTypeArguments()
    { 
        return typeArguments;
    } 
 

5
CodeRank
Experience pair programming with AI  Get Codota for Java
This code example shows how to use the following methods:
This code example shows how to use the following methods:
      /** 
       * @see DiskOffering#getDomain() 
       */ 
      public T domain(String domain) { 
         this.domain = domain; 
         return self(); 
      } 
 
      /** 
       * @see DiskOffering#getDomainId() 
       */ 
      public T domainId(String domainId) { 
         this.domainId = domainId; 
         return self(); 
      } 
 
      /** 
       * @see DiskOffering#getDiskSize() 
       */ 
      public T diskSize(int diskSize) { 
3
CodeRank
Experience pair programming with AI  Get Codota for Java
This code example shows how to use the following methods:
       * @see PublicIPAddress#getId() 
       */ 
      public T id(String id) { 
         this.id = id; 
         return self(); 
      } 
 
      /** 
       * @see PublicIPAddress#getAccount() 
       */ 
      public T account(String account) { 
         this.account = account; 
         return self(); 
      } 
 
      /** 
       * @see PublicIPAddress#getAllocated() 
       */ 
      public T allocated(Date allocated) { 
         this.allocated = allocated; 
2
CodeRank
Experience pair programming with AI  Get Codota for Java
This code example shows how to use the following methods:
This code example shows how to use the following methods:
 
      protected long capacityTotal; 
      protected long capacityUsed; 
      protected double percentUsed; 
      protected String podId; 
      protected String podName; 
      protected Capacity.Type type; 
      protected String zoneId; 
      protected String zoneName; 
 
      /** 
       * @see Capacity#getCapacityTotal() 
       */ 
      public T capacityTotal(long capacityTotal) { 
         this.capacityTotal = capacityTotal; 
         return self(); 
      } 
 
      /** 
       * @see Capacity#getCapacityUsed() 
3
CodeRank
Experience pair programming with AI  Get Codota for Java
This code example shows how to use the following methods:
   public Builder<?> toBuilder() { 
      return new ConcreteBuilder().fromUsageRecord(this); 
   } 
 
   public abstract static class Builder<T extends Builder<T>> { 
      protected abstract T self(); 
 
      protected String id; 
      protected String description; 
      protected String accountId; 
      protected String accountName; 
      protected String domainId; 
      protected Date startDate; 
      protected Date endDate; 
      protected Date assignDate; 
      protected String releaseDate; 
      protected String zoneId; 
      protected String virtualMachineId; 
      protected String virtualMachineName; 
      protected String serviceOfferingId; 
2
CodeRank
Experience pair programming with AI  Get Codota for Java
This code example shows how to use the following methods:
         return self(); 
      } 
 
      /** 
       * @see Domain#getParentDomainId() 
       */ 
      public T parentDomainId(String parentDomainId) { 
         this.parentDomainId = parentDomainId; 
         return self(); 
      } 
 
      /** 
       * @see Domain#getParentDomainName() 
       */ 
      public T parentDomainName(String parentDomainName) { 
         this.parentDomainName = parentDomainName; 
         return self(); 
      } 
 
      public Domain build() { 
3
CodeRank
Experience pair programming with AI  Get Codota for Java
This code example shows how to use the following methods:
         try { 
            return valueOf(checkNotNull(state, "state")); 
         } catch (IllegalArgumentException e) { 
            return UNRECOGNIZED; 
         } 
      } 
 
   } 
 
   public static enum Type { 
 
      USER, BUILTIN, UNRECOGNIZED; 
 
      //TODO do we need camel case routines (e.g. see enums in VirtualMachine) ? 
      public static Type fromValue(String type) { 
         try { 
            return valueOf(checkNotNull(type, "type")); 
         } catch (IllegalArgumentException e) { 
            return UNRECOGNIZED; 
         } 
1
CodeRank
Experience pair programming with AI  Get Codota for Java
See Code Examples for Guava MoreObjects.ToStringHelper Methods: