lombok.Builder.<init>()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(4.8k)|赞(0)|评价(0)|浏览(204)

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

Builder.<init>介绍

暂无

代码示例

代码示例来源:origin: codecentric/spring-boot-admin

@Data
@Builder
public static class Message {
  private final String summary;
  private final String themeColor;
  private final String title;
  @Builder.Default
  private final List<Section> sections = new ArrayList<>();
}

代码示例来源:origin: hs-web/hsweb-framework

/**
 * @author zhouhao
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class SqlExecuteRequest implements Serializable{
  private static final long serialVersionUID = 8640714319329779262L;
  private List<SqlInfo> sql;

}

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

@Data
@Builder
// required for mapstruct
@NoArgsConstructor
public class DeploymentConfiguration {}

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

@Data
@Builder
// required for builder
@AllArgsConstructor
public class DeploymentConfiguration {}

代码示例来源:origin: aol/micro-server

@AllArgsConstructor
  @Builder
  @Getter
  public static class GenericEventData<T> extends BaseEventInfo {
    private final String name;
    private final String[] subTypes;
    private final T data;
  }
}

代码示例来源:origin: aol/micro-server

@Setter
@Getter
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class JdbcEntity implements java.io.Serializable {

  private static final long serialVersionUID = 1L;

  private Long id;
  private String name;
  private String value;
  private int version;

}

代码示例来源:origin: hs-web/hsweb-framework

/**
 * @author zhouhao
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class SqlExecuteResult {

  private SqlInfo sqlInfo;

  private Object result;

  private boolean success;

}

代码示例来源:origin: codecentric/spring-boot-admin

@Data
@Builder
public static class Section {
  private final String activityTitle;
  private final String activitySubtitle;
  @Builder.Default
  private final List<Fact> facts = new ArrayList<>();
}

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

@Data
@Builder
// required for builder
@AllArgsConstructor
public class DeploymentConfiguration {}

代码示例来源:origin: aol/micro-server

@AllArgsConstructor
  @Builder
  @XmlAccessorType(XmlAccessType.FIELD)
  @Getter
  public static class RequestData<T> extends BaseEventInfo {

    private final long correlationId;

    private final T query;

    private final String type;
    private final Object additionalData;
  }
}

代码示例来源:origin: hs-web/hsweb-framework

/**
 * @author zhouhao
 * @since 3.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class SimplePosition implements Position {
  private static final long serialVersionUID = 1_0;
  private String id;

  private String name;

  private String code;

  private Department department;
}

代码示例来源:origin: lets-blade/blade

/**
 * @author biezhi
 * @date 2017/10/19
 */
@Data
@Builder
public class Scanner {

  private String                      packageName;
  private boolean                     recursive;
  private Class<?>                    parent;
  private Class<? extends Annotation> annotation;
}

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

@Data
@Builder
@AllArgsConstructor
public class SchedulerOutput {
 private final String clusterName;
 private final EnvironmentId environmentId;

 private final long successfulActions;
 private final long failedActions;
}

代码示例来源:origin: scouter-project/scouter

/**
 * Created by csk746(csk746@naver.com) on 2017. 10. 15..
 */
@Getter
@ToString
@AllArgsConstructor
@Builder
public class VisitorGroup {

  private String time;

  private long value;

  public static VisitorGroup of(MapPack mapPack){
    return VisitorGroup.builder().time(mapPack.getText("time")).value(mapPack.getLong("value")).build();
  }

}

代码示例来源:origin: hs-web/hsweb-framework

/**
 * @author zhouhao
 * @since 3.0
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class SimpleDepartment implements Department {
  private static final long serialVersionUID = 1_0;
  private String id;
  private String name;
  private String code;
  private Organization org;
}

代码示例来源:origin: lets-blade/blade

/**
 * @author biezhi
 * @date 2017/10/19
 */
@Data
@Builder
public class Scanner {

  private String                      packageName;
  private boolean                     recursive;
  private Class<?>                    parent;
  private Class<? extends Annotation> annotation;
}

代码示例来源:origin: deeplearning4j/nd4j

@Builder
@AllArgsConstructor
@Data
public class Pooling2DConfig extends BaseConvolutionConfig {

代码示例来源:origin: deeplearning4j/nd4j

/**
 * This class is simple POJO that contains basic information about CustomOp
 *
 * @author raver119@gmail.com
 */
@AllArgsConstructor
@Builder
public class CustomOpDescriptor {
  @Getter private long hash;
  @Getter private int numInputs;
  @Getter private int numOutputs;
  @Getter private boolean allowsInplace;
  @Getter private int numTArgs;
  @Getter private int numIArgs;
}

代码示例来源:origin: apache/pulsar

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class GetSchemaResponse {
  private long version;
  private SchemaType type;
  private long timestamp;
  private String data;
  private Map<String, String> properties;
}

代码示例来源:origin: apache/pulsar

@Builder
@Data
public class SchemaData {
  private final SchemaType type;
  private final boolean isDeleted;
  private final long timestamp;
  private final String user;
  private final byte[] data;
  @Builder.Default
  private Map<String, String> props = new HashMap<>();
}

相关文章

Builder类方法