javax.validation.constraints.Null.<init>()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(4.9k)|赞(0)|评价(0)|浏览(231)

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

Null.<init>介绍

暂无

代码示例

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

private Map<Integer, List<T>> pages;
@Null
private String sortField;
@Null
private SortOrder sortOrder;
@Null
private List<SortMeta> multiSortMeta;
@Null
private Map<String, Object> filters;

代码示例来源:origin: sixt/ja-micro

private @Null Span span;
private @Null GoTimer handlerTimer;
private long startTime;

代码示例来源:origin: sixt/ja-micro

@Null
private final Tracer tracer;
@Null
private final MetricBuilderFactory metricsBuilderFactory;

代码示例来源:origin: hibernate/hibernate-validator

@Null
private String value1 = null;

代码示例来源:origin: org.hibernate.jsr303.tck/jsr303-tck

class NullDummyEntity {
  @Null
  Object property;
  public Object getProperty() {
    return property;
  }
  public void setProperty(Object property) {
    this.property = property;
  }
}

代码示例来源:origin: org.hibernate.beanvalidation.tck/beanvalidation-tck-tests

private static class NullDummyEntity {
  @Null
  private Object property;
  public void setProperty(Object property) {
    this.property = property;
  }
}

代码示例来源:origin: apache/apex-malhar

/**
 * @param column   Name of column value to be negated.
 */
public NegateExpression(@Null String column, String alias)
{
 super(column, alias);
 if (this.alias == null) {
  this.alias = "NEGATE(" + column + ")";
 }
}

代码示例来源:origin: org.apache.apex/malhar-contrib

/**
 * @param column   Name of column value to be negated.
 */
public NegateExpression(@Null String column, String alias)
{
 super(column, alias);
 if (this.alias == null) {
  this.alias = "NEGATE(" + column + ")";
 }
}

代码示例来源:origin: org.hibernate.beanvalidation.tck/beanvalidation-tck-tests

private class WrapperWithDisabledUnwrapping {
  @Null(payload = { Unwrapping.Skip.class })
  private final Wrapper<Integer> integerWrapper = new Wrapper<>( 5 );
}

代码示例来源:origin: org.hibernate.beanvalidation.tck/beanvalidation-tck-tests

private class IntegerWrapperWithDisabledUnwrapping {
  @Null(payload = { Unwrapping.Skip.class })
  private final IntegerWrapper integerWrapper = new IntegerWrapper( 5 );
}

代码示例来源:origin: org.hibernate.beanvalidation.tck/beanvalidation-tck-tests

private class EntityWithNoUnwrapping {
  @Null
  private final ValueHolder<Integer> integerHolder = new ValueHolder<>( 5 );
}

代码示例来源:origin: spring-projects/spring-restdocs

@Null
@NotBlank
@Target(ElementType.FIELD)

代码示例来源:origin: Impetus/Kundera

@Null(message="The value should be null.")
private String nullField;

代码示例来源:origin: org.hibernate.beanvalidation.tck/beanvalidation-tck-tests

@DecimalMin("10001")
@Null(groups = IgnoredValidationGroup.class)
public String placeBooking(@Size(min = 5) @Null(groups = IgnoredValidationGroup.class) String name) {
  invocationCount++;
  return name;
}

代码示例来源:origin: syhily/gossip

@Data
@Accessors(chain = true)
public abstract class Pagination {
  private static final long serialVersionUID = -2494442769959590624L;

  // The number to show in each page
  @Min(value = 1, message = "Page size should be bigger than 1")
  private Integer pageSize;

  // The query page
  @Min(value = 1, message = "Page num should be positive value")
  private Integer currentPage;

  // The total count multiply page size, only act as a response
  @Null(message = "Argument [totalPage] is not valid")
  private Integer totalPage;
}

代码示例来源:origin: chengdedeng/waf

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class UpstreamConfigDto {
  @NotEmpty
  @ApiModelProperty(value = "x-waf-route,路由标志。", required = true)
  private String wafRoute;
  @NotNull(groups = Exist.class)
  @Null(groups = NotExist.class)
  @ApiModelProperty(value = "开关,true启用,false关闭。")
  private Boolean isStart;
}

代码示例来源:origin: org.hibernate.beanvalidation.tck/beanvalidation-tck-tests

@Inject
@ValidAnotherBookingService
@Null(groups = IgnoredValidationGroup.class)
public AnotherBookingService(@LongName @Size(min = 5) @Null(groups = IgnoredValidationGroup.class) String name) {
  AnotherBookingService.name = name;
  invocationCount++;
}

代码示例来源:origin: chengdedeng/waf

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@CheckRedirectConfigItem(groups = Exist.class)
public class RedirectConfigDto {
  @NotEmpty
  @ApiModelProperty(value = "x-waf-route,路由标志。", required = true)
  private String wafRoute;
  @NotNull(groups = Exist.class)
  @Null(groups = NotExist.class)
  @ApiModelProperty(value = "开关,true启用,false关闭。")
  private Boolean isStart;
  @NotNull(groups = Exist.class)
  @Null(groups = NotExist.class)
  private List<String> items;
}

代码示例来源:origin: chengdedeng/waf

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@CheckRewriteConfigItem(groups = Exist.class)
public class RewriteConfigDto {
  @NotEmpty
  @ApiModelProperty(value = "x-waf-route,路由标志。", required = true)
  private String wafRoute;
  @NotNull(groups = Exist.class)
  @Null(groups = NotExist.class)
  @ApiModelProperty(value = "开关,true启用,false关闭。")
  private Boolean isStart;
  @NotNull(groups = Exist.class)
  @Null(groups = NotExist.class)
  private List<String> items;
}

代码示例来源:origin: spring-projects/spring-restdocs

private String notNull;
@Null
private String nul;

相关文章