本文整理了Java中org.xipki.util.Args.notNegative()
方法的一些代码示例,展示了Args.notNegative()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Args.notNegative()
方法的具体详情如下:
包路径:org.xipki.util.Args
类名称:Args
方法名:notNegative
暂无
代码示例来源:origin: org.xipki/security
public P11SlotIdentifier(int index, long id) {
this.index = Args.notNegative(index, "index");
this.id = Args.notNegative(id, "id");
}
代码示例来源:origin: org.xipki/ca-server
public UniqueIdGenerator(long epoch, int shardId) {
this.epoch = Args.notNegative(epoch, "epoch");
this.shardId = Args.range(shardId, "shardId", 0, 127);
this.accumulatorFunction = new OffsetIncrement();
}
代码示例来源:origin: org.xipki/ca-api
public Ca(NameId ident, int serialNoBitLen, long nextCrlNumber, String signerType,
String signerConf, CaUris caUris, int numCrls, int expirationPeriod) {
this.ident = Args.notNull(ident, "ident");
this.signerType = Args.toNonBlankLower(signerType, "signerType");
this.expirationPeriod = Args.notNegative(expirationPeriod, "expirationPeriod");
this.signerConf = Args.notBlank(signerConf, "signerConf");
this.numCrls = Args.positive(numCrls, "numCrls");
this.serialNoBitLen = Args.range(serialNoBitLen, "serialNoBitLen", 63, 159);
this.nextCrlNumber = Args.positive(nextCrlNumber, "nextCrlNumber");
this.caUris = (caUris == null) ? CaUris.EMPTY_INSTANCE : caUris;
}
代码示例来源:origin: org.xipki/ca-api
throws InvalidConfException {
if (confirmWaitTime != null) {
Args.notNegative(confirmWaitTime, "confirmWaitTime");
内容来源于网络,如有侵权,请联系作者删除!