本文整理了Java中com.tc.util.Assert.assertNoNullElements()
方法的一些代码示例,展示了Assert.assertNoNullElements()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Assert.assertNoNullElements()
方法的具体详情如下:
包路径:com.tc.util.Assert
类名称:Assert
方法名:assertNoNullElements
[英]Validate that the given (1 dimensional) array of references contains no nulls
[中]验证给定的(一维)引用数组是否不包含空值
代码示例来源:origin: org.terracotta/terracotta-l1-ee
public InetSocketAddressList(InetSocketAddress[] addressList) {
Assert.assertNoNullElements(addressList);
for (InetSocketAddress address : addressList) {
this.addressList.add(address);
}
}
代码示例来源:origin: org.terracotta/terracotta-l1
public InetSocketAddressList(InetSocketAddress[] addressList) {
Assert.assertNoNullElements(addressList);
for (InetSocketAddress address : addressList) {
this.addressList.add(address);
}
}
代码示例来源:origin: org.terracotta/terracotta-ee
public InetSocketAddressList(InetSocketAddress[] addressList) {
Assert.assertNoNullElements(addressList);
for (InetSocketAddress address : addressList) {
this.addressList.add(address);
}
}
代码示例来源:origin: org.terracotta/terracotta-l1-ee
public BeanWithErrors(XmlObject bean, XmlError[] errors) {
Assert.assertNotNull(bean);
Assert.assertNoNullElements(errors);
this.bean = bean;
this.errors = errors;
}
代码示例来源:origin: org.terracotta/terracotta-ee
public BeanWithErrors(XmlObject bean, XmlError[] errors) {
Assert.assertNotNull(bean);
Assert.assertNoNullElements(errors);
this.bean = bean;
this.errors = errors;
}
代码示例来源:origin: org.terracotta/terracotta-ee
public CompositeIdentifier(AbstractIdentifier[] components) {
Assert.assertNoNullElements(components);
this.components = components;
this.hashCode = makeHashCode(components);
}
代码示例来源:origin: org.terracotta/terracotta-l1
@Override
public synchronized L2Data[][] getL2DataByGroup() {
if (this.l2DataByGroup == null) {
createL2DataByGroup();
}
Assert.assertNoNullElements(this.l2DataByGroup);
return this.l2DataByGroup;
}
代码示例来源:origin: org.terracotta/terracotta-ee
@Override
public synchronized L2Data[][] getL2DataByGroup() {
if (this.l2DataByGroup == null) {
createL2DataByGroup();
}
Assert.assertNoNullElements(this.l2DataByGroup);
return this.l2DataByGroup;
}
代码示例来源:origin: org.terracotta/terracotta-l1
public BeanWithErrors(XmlObject bean, XmlError[] errors) {
Assert.assertNotNull(bean);
Assert.assertNoNullElements(errors);
this.bean = bean;
this.errors = errors;
}
代码示例来源:origin: org.terracotta/terracotta-l1-ee
@Override
public synchronized L2Data[][] getL2DataByGroup() {
if (this.l2DataByGroup == null) {
createL2DataByGroup();
}
Assert.assertNoNullElements(this.l2DataByGroup);
return this.l2DataByGroup;
}
代码示例来源:origin: org.terracotta/terracotta-l1-ee
public CompositeIdentifier(AbstractIdentifier[] components) {
Assert.assertNoNullElements(components);
this.components = components;
this.hashCode = makeHashCode(components);
}
内容来源于网络,如有侵权,请联系作者删除!