lombok.ToString类的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(10.0k)|赞(0)|评价(0)|浏览(137)

本文整理了Java中lombok.ToString类的一些代码示例,展示了ToString类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ToString类的具体详情如下:
包路径:lombok.ToString
类名称:ToString

ToString介绍

暂无

代码示例

代码示例来源:origin: prontera/spring-cloud-rest-tcc

/**
 * @author Zhao Junjian
 */
@Getter
@Builder
@ToString(callSuper = true)
@EqualsAndHashCode
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(value = {"hibernateLazyInitializer", "handler", "fieldHandler"}, ignoreUnknown = true)
public class SwaggerApiInfo {

  private String title;

  private String version;

  private String serviceUrl;

  private List<ResponseMessage> statusList;

}

代码示例来源:origin: fabric8io/kubernetes-client

@JsonInclude(JsonInclude.Include.NON_NULL)
@Generated("org.jsonschema2pojo")
@JsonPropertyOrder({
  "apiVersion",
  "kind",
  "metadata"
})
@JsonDeserialize(using = com.fasterxml.jackson.databind.JsonDeserializer.None.class)
@ToString
@EqualsAndHashCode
@Buildable(editableEnabled = false, validationEnabled = true, generateBuilderPackage = true, builderPackage = "io.fabric8.kubernetes.api.builder", inline = @Inline(type = Doneable.class, prefix = "Doneable", value = "done"))
public class Patch implements KubernetesResource
  @JsonIgnore
  private Map<String, Object> additionalProperties = new HashMap<String, Object>();

代码示例来源:origin: prontera/spring-cloud-rest-tcc

/**
 * @author Zhao Junjian
 */
@Getter
@Setter
@NoArgsConstructor
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(value = {"hibernateLazyInitializer", "handler", "fieldHandler"}, ignoreUnknown = true)
public class LoginResponse extends RestfulResponse {
  private static final long serialVersionUID = 7883775815440213351L;

  @JsonProperty("mobile")
  @ApiModelProperty(value = "手机号", example = "18888888888", required = true)
  private String mobile;

  @JsonProperty("balance")
  @ApiModelProperty(value = "用户的初始化余额", example = "100000000", required = true)
  private Long balance;

}

代码示例来源:origin: apache/incubator-shardingsphere

/**
 * Table.
 * 
 * @author zhangliang
 */
@RequiredArgsConstructor
@Getter
@EqualsAndHashCode
@ToString
public final class Table {
  
  private final String name;
  
  private final Optional<String> alias;
}

代码示例来源:origin: spinnaker/kayenta

@ToString
  @EqualsAndHashCode
  @NoArgsConstructor
  @AllArgsConstructor
  @Builder
  @Slf4j
  @Data
  public static class GraphiteMetricDescriptorResponseEntity {
    private String path;

    private String name;

    @JsonProperty("is_leaf")
    private String isLeaf;
  }
}

代码示例来源:origin: odrotbohm/spring-restbucks

/**
 * Base class for entity implementations. Uses a {@link Long} id.
 * 
 * @author Oliver Gierke
 */
@MappedSuperclass
@Getter
@ToString
@EqualsAndHashCode
public class AbstractEntity implements Identifiable<Long> {

  private final @Id @GeneratedValue(strategy = GenerationType.AUTO) @JsonIgnore Long id;
  private @Version Long version;

  protected AbstractEntity() {
    this.id = null;
  }
}

代码示例来源:origin: apache/incubator-shardingsphere

/**
 * DQL statement.
 *
 * @author zhangliang
 */
@ToString(callSuper = true)
public class DQLStatement extends AbstractSQLStatement {
  
  public DQLStatement() {
    super(SQLType.DQL);
  }
  
  /**
   * Is DQL statement.
   *
   * @param tokenType token type
   * @return is DQL or not
   */
  public static boolean isDQL(final TokenType tokenType) {
    return DefaultKeyword.SELECT == tokenType;
  }
}

代码示例来源:origin: jmxtrans/jmxtrans

@JsonPropertyOrder(value = {"obj", "attr", "typeNames", "resultAlias", "keys", "allowDottedKeys", "useAllTypeNames", "outputWriters"})
@ThreadSafe
@EqualsAndHashCode(exclude = {"outputWriters", "outputWriterInstances"})
@ToString(exclude = {"outputWriters", "typeNameValuesStringBuilder"})
public class Query {

代码示例来源:origin: fabric8io/kubernetes-client

@JsonInclude(JsonInclude.Include.NON_NULL)
@Generated("org.jsonschema2pojo")
@JsonPropertyOrder({
  "apiVersion",
  "kind",
  "metadata"
})
@JsonDeserialize(using = com.fasterxml.jackson.databind.JsonDeserializer.None.class)
@ToString
@EqualsAndHashCode
@Buildable(editableEnabled = false, validationEnabled = true, generateBuilderPackage = true, builderPackage = "io.fabric8.kubernetes.api.builder", inline = @Inline(type = Doneable.class, prefix = "Doneable", value = "done"))
public class CustomResourceSubresourceStatus implements KubernetesResource
  @JsonIgnore
  private Map<String, Object> additionalProperties = new HashMap<String, Object>();

代码示例来源:origin: prontera/spring-cloud-rest-tcc

/**
 * @author Zhao Junjian
 */
@Getter
@Setter
@NoArgsConstructor
@ToString(callSuper = true)
@EqualsAndHashCode
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(value = {"hibernateLazyInitializer", "handler", "fieldHandler"}, ignoreUnknown = true)
public class RestfulResponse implements Response {
  private static final long serialVersionUID = -7443304902819898146L;

  public static final int DEFAULT_OK = 20000;

  /**
   * [M] 平台状态码
   */
  @JsonProperty("code")
  @ApiModelProperty(value = "平台状态码", example = "20000", required = true)
  private int code = DEFAULT_OK;
}

代码示例来源:origin: apache/incubator-shardingsphere

/**
 * Routing table.
 * 
 * @author maxiaoguang
 */
@RequiredArgsConstructor
@Getter
@EqualsAndHashCode
@ToString
public final class RoutingTable {
  
  private final String logicTableName;
  
  private final String actualTableName;
}

代码示例来源:origin: apache/incubator-shardingsphere

/**
 * Sharding condition.
 * 
 * @author maxiaoguang
 */
@Getter
@ToString
public class ShardingCondition {
  
  private final List<ShardingValue> shardingValues = new LinkedList<>();
}

代码示例来源:origin: jmxtrans/jmxtrans

@JsonPropertyOrder(value = {
    "alias",
    "local",
@Immutable
@ThreadSafe
@EqualsAndHashCode(exclude = {"queries", "pool", "outputWriters", "outputWriterFactories"})
@ToString(of = {"pid", "host", "port", "url", "cronExpression", "numQueryThreads"})
public class Server implements JmxConnectionProvider {

代码示例来源:origin: fabric8io/kubernetes-client

@JsonInclude(JsonInclude.Include.NON_NULL)
@Generated("org.jsonschema2pojo")
@JsonPropertyOrder({
  "apiVersion",
  "kind",
  "clusterRoleSelectors"
})
@JsonDeserialize(using = com.fasterxml.jackson.databind.JsonDeserializer.None.class)
@ToString
@EqualsAndHashCode
@Buildable(editableEnabled = false, validationEnabled = true, generateBuilderPackage = true, builderPackage = "io.fabric8.kubernetes.api.builder", inline = @Inline(type = Doneable.class, prefix = "Doneable", value = "done"))
public class AggregationRule implements KubernetesResource
  @JsonProperty("clusterRoleSelectors")
  @JsonInclude(JsonInclude.Include.NON_EMPTY)
  @Valid
  private List<LabelSelector> clusterRoleSelectors = new ArrayList<LabelSelector>();
  @JsonIgnore
  private Map<String, Object> additionalProperties = new HashMap<String, Object>();

代码示例来源:origin: prontera/spring-cloud-rest-tcc

/**
 * @author Zhao Junjian
 */
@Getter
@Setter
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(value = {"hibernateLazyInitializer", "handler", "fieldHandler"}, ignoreUnknown = true)
public class ObjectDataResponse<T> extends RestfulResponse {

  private static final long serialVersionUID = 1562741318988223256L;

  private T data;

  public ObjectDataResponse(T data) {
    this.data = data;
  }
}

代码示例来源:origin: prontera/spring-cloud-rest-tcc

/**
 * @author Zhao Junjian
 */
@Getter
@Setter
@NoArgsConstructor
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(value = {"hibernateLazyInitializer", "handler", "fieldHandler"}, ignoreUnknown = true)
public class RegisterResponse extends RestfulResponse {
  private static final long serialVersionUID = 7883775815440213351L;

  @ApiModelProperty(value = "用户ID", example = "1", required = true)
  private Long id;

  @JsonProperty("mobile")
  @ApiModelProperty(value = "手机号", example = "18888888888", required = true)
  private String mobile;

  @JsonProperty("balance")
  @ApiModelProperty(value = "用户的初始化余额", example = "100000000", required = true)
  private Long balance;
}

代码示例来源:origin: apache/incubator-shardingsphere

/**
 * Common select item.
 *
 * @author zhangliang
 */
@RequiredArgsConstructor
@Getter
@EqualsAndHashCode
@ToString
public final class CommonSelectItem implements SelectItem {
  
  private final String expression;
  
  private final Optional<String> alias;
}

代码示例来源:origin: apache/incubator-shardingsphere

/**
 * Insert values.
 *
 * @author maxiaoguang
 */
@Getter
@ToString
public final class InsertValues {
  
  private final List<InsertValue> insertValues = new LinkedList<>();
}

代码示例来源:origin: fabric8io/kubernetes-client

@JsonInclude(JsonInclude.Include.NON_NULL)
@Generated("org.jsonschema2pojo")
@JsonPropertyOrder({
  "apiVersion",
  "kind",
  "matchLabelExpressions"
})
@JsonDeserialize(using = com.fasterxml.jackson.databind.JsonDeserializer.None.class)
@ToString
@EqualsAndHashCode
@Buildable(editableEnabled = false, validationEnabled = true, generateBuilderPackage = true, builderPackage = "io.fabric8.kubernetes.api.builder", inline = @Inline(type = Doneable.class, prefix = "Doneable", value = "done"))
public class TopologySelectorTerm implements KubernetesResource
  @JsonProperty("matchLabelExpressions")
  @JsonInclude(JsonInclude.Include.NON_EMPTY)
  @Valid
  private List<TopologySelectorLabelRequirement> matchLabelExpressions = new ArrayList<TopologySelectorLabelRequirement>();
  @JsonIgnore
  private Map<String, Object> additionalProperties = new HashMap<String, Object>();

代码示例来源:origin: prontera/spring-cloud-rest-tcc

/**
 * @author Zhao Junjian
 */
@Getter
@Setter
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(value = {"hibernateLazyInitializer", "handler", "fieldHandler"}, ignoreUnknown = true)
public class ObjectDataResponse<T> extends RestfulResponse {
  private static final long serialVersionUID = 1862906172390850647L;

  private T data;

  public ObjectDataResponse(T data) {
    this.data = data;
  }
}

相关文章

ToString类方法