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

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

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

Min.<init>介绍

暂无

代码示例

代码示例来源:origin: prestodb/presto

@Min(2)
@Max(1000)
public int getMaxOpenSortFiles()
{
  return maxOpenSortFiles;
}

代码示例来源:origin: prestodb/presto

@NotNull
@Min(1)
public int getCardinalityCacheSize()
{
  return cardinalityCacheSize;
}

代码示例来源:origin: javaee-samples/javaee7-samples

@POST
  @Consumes(MediaType.APPLICATION_FORM_URLENCODED)
  public void post2(@NotNull @FormParam("name") String name, @Min(1) @Max(10) @FormParam("age") int age) {
  }
}

代码示例来源:origin: org.glassfish.admin/config-api

/**
 * Gets the value of the maxPendingCount property.
 *
 * Max no of pending connections on the listen socket
 * 
 * @return possible object is
 *         {@link String }
 */
@Attribute (defaultValue="4096")
@Min(value=1)
@Max(value=Integer.MAX_VALUE)
String getMaxPendingCount();

代码示例来源:origin: org.glassfish.main.admin/config-api

/**
 * Gets the value of the intervalInSeconds property.
 *
 * Interval, in seconds, between health checks. A value of "0"  means that
 * the health check is disabled. Default is 30 seconds. Must be 0 or greater.
 *
 * @return possible object is
 *         {@link String }
 */
@Attribute (defaultValue="30")
@Min(value=0)
public String getIntervalInSeconds();

代码示例来源: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 IncreaseProductInventoryRequest extends RestfulRequest {
  private static final long serialVersionUID = -9199433097889171784L;

  @NotNull
  @Min(0)
  @Max(100000000)
  @ApiModelProperty(value = "库存", required = true, example = "10000000")
  private Integer count;

}

代码示例来源:origin: prestodb/presto

@NotNull
@Min(1)
public int getScrollSize()
{
  return scrollSize;
}

代码示例来源:origin: org.glassfish.admin/config-api

/**
 * Gets the value of the sendBufferSizeInBytes property.
 *
 * The buffer size of the send buffer used by sockets
 * 
 * @return possible object is
 *         {@link String }
 */
@Attribute (defaultValue="8192")
@Min(value=1)
@Max(value=Integer.MAX_VALUE)
String getSendBufferSizeInBytes();

代码示例来源:origin: prestodb/presto

@Min(0)
@Max(1_000_000_000)
public int getMaxQueryLength()
{
  return maxQueryLength;
}

代码示例来源:origin: org.glassfish.admin/config-api

/**
 * Gets the value of the maxMissedHeartbeats property.
 * <p/>
 * Maximum number of attempts to try before GMS confirms that a failure is
 * suspected in the group. Must be a positive integer.
 *
 * @return possible object is
 *         {@link String }
 */
@Attribute(defaultValue = "3")
@Min(value = 1)
String getMaxMissedHeartbeats();

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

/**
 * @author Zhao Junjian
 */
@Getter
@Setter
@NoArgsConstructor
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@JsonNaming(PropertyNamingStrategy.SnakeCaseStrategy.class)
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(value = {"hibernateLazyInitializer", "handler", "fieldHandler"}, ignoreUnknown = true)
public class RechargeRequest extends RestfulRequest {

  private static final long serialVersionUID = 7648874951562688753L;

  @NotNull
  @Min(1)
  @Max(100000000)
  @ApiModelProperty(value = "充值金额, 单位分", example = "100000000", required = true)
  private Long amount;

}

代码示例来源:origin: prestodb/presto

@NotNull
@Min(1)
public int getMaxHits()
{
  return maxHits;
}

代码示例来源:origin: org.glassfish.main.admin/config-api

/**
   * Gets the value of the verifyFailureConnectTimeoutInMillis.
   * @since glassfish v3.1
   */
  @Attribute(defaultValue = "10000")
  @Min(value = 3000)
  @Max(value = 120000)
  String getVerifyFailureConnectTimeoutInMillis();
}

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

@Min(1)
private int segmentsPerNode = 50;
@Max(1024 * 1024)
@Min(1024)
private long maxBytesPerNode = 512 * 1024;

代码示例来源:origin: org.glassfish.admin/config-api

/**
 * Gets the value of the shutdownTimeoutInSeconds property.
   *
 * @return possible object is
 *         {@link String }
 */
@Attribute (defaultValue="30")
@Min(value=1)
public String getShutdownTimeoutInSeconds();

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

/**
 * @author Zhao Junjian
 */
@Getter
@Setter
@NoArgsConstructor
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@JsonNaming(PropertyNamingStrategy.SnakeCaseStrategy.class)
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(value = {"hibernateLazyInitializer", "handler", "fieldHandler"}, ignoreUnknown = true)
public class BalanceReservationRequest extends RestfulRequest {

  private static final long serialVersionUID = -7315046960598963993L;

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

  @NotNull
  @Min(1)
  @Max(100000000L)
  @ApiModelProperty(value = "预留金额", example = "100", required = true)
  private Long amount;

}

代码示例来源:origin: Graylog2/graylog2-server

@GET
@Timed
@Produces(MediaType.APPLICATION_JSON)
public SubstringTesterResponse substringTester(@QueryParam("begin_index") @Min(0) int beginIndex,
                        @QueryParam("end_index") @Min(1) int endIndex,
                        @QueryParam("string") @NotNull String string) {
  return doSubstringTest(string, beginIndex, endIndex);
}

代码示例来源:origin: org.glassfish.main.jdbc/jdbc-config

/**
 * Gets the value of the steadyPoolSize property.
 *
 * Minimum and initial number of connections maintained in the pool
 * 
 * @return possible object is
 *         {@link String }
 */
@Attribute (defaultValue="8")
@Min(value=0)
@Max(value=Integer.MAX_VALUE)
String getSteadyPoolSize();

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

@Min(0)
@Max(0xffff)
private int restPort = 8080;
@Min(0)
private int pollingMs = 10000;

代码示例来源:origin: org.glassfish.main.admin/config-api

/**
 * Gets the value of the maxMissedHeartbeats property.
 * <p/>
 * Maximum number of attempts to try before GMS confirms that a failure is
 * suspected in the group. Must be a positive integer.
 *
 * @return possible object is
 *         {@link String }
 */
@Attribute(defaultValue = "3")
@Min(value = 1)
String getMaxMissedHeartbeats();

相关文章