当前位置: 首页>>代码示例>>Java>>正文


Java Validate.noNullElements方法代码示例

本文整理汇总了Java中org.apache.commons.lang3.Validate.noNullElements方法的典型用法代码示例。如果您正苦于以下问题:Java Validate.noNullElements方法的具体用法?Java Validate.noNullElements怎么用?Java Validate.noNullElements使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.apache.commons.lang3.Validate的用法示例。


在下文中一共展示了Validate.noNullElements方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: ChunkCluster

import org.apache.commons.lang3.Validate; //导入方法依赖的package包/类
public ChunkCluster(int clX, int clZ, Chunk[] chunks)
{
	this.clX = clX;
	this.clZ = clZ;

	Validate.isTrue(chunks.length == NUMBER_OF_CHUNKS, "The number of chunks has to be "+NUMBER_OF_CHUNKS);
	Validate.noNullElements(chunks);
	this.chunks = chunks;
}
 
开发者ID:domisum,项目名称:ExZiff,代码行数:10,代码来源:ChunkCluster.java

示例2: Chunk

import org.apache.commons.lang3.Validate; //导入方法依赖的package包/类
public Chunk(int cX, int cZ, ChunkSection[] chunkSections)
{
	this.cX = cX;
	this.cZ = cZ;

	Validate.isTrue(chunkSections.length == NUMBER_OF_SECTIONS, "The number of chunk sections has to be "+NUMBER_OF_SECTIONS);
	Validate.noNullElements(chunkSections, "chunkSections can't contain null elements");

	this.chunkSections = chunkSections;
}
 
开发者ID:domisum,项目名称:ExZiff,代码行数:11,代码来源:Chunk.java

示例3: Schedule

import org.apache.commons.lang3.Validate; //导入方法依赖的package包/类
Schedule(List<CarrierMovement> carrierMovements) {
    Validate.notNull(carrierMovements);
    Validate.noNullElements(carrierMovements);
    Validate.notEmpty(carrierMovements);

    this.carrierMovements = carrierMovements;
}
 
开发者ID:RETIT,项目名称:continuous-performance-evaluation,代码行数:8,代码来源:Schedule.java

示例4: CarrierMovement

import org.apache.commons.lang3.Validate; //导入方法依赖的package包/类
public CarrierMovement(Location departureLocation,
        Location arrivalLocation, Date departureTime, Date arrivalTime) {
    Validate.noNullElements(new Object[]{departureLocation,
        arrivalLocation, departureTime, arrivalTime});
    this.departureTime = departureTime;
    this.arrivalTime = arrivalTime;
    this.departureLocation = departureLocation;
    this.arrivalLocation = arrivalLocation;
}
 
开发者ID:RETIT,项目名称:continuous-performance-evaluation,代码行数:10,代码来源:CarrierMovement.java

示例5: Leg

import org.apache.commons.lang3.Validate; //导入方法依赖的package包/类
public Leg(Voyage voyage, Location loadLocation, Location unloadLocation,
        Date loadTime, Date unloadTime) {
    Validate.noNullElements(new Object[]{voyage, loadLocation,
        unloadLocation, loadTime, unloadTime});

    this.voyage = voyage;
    this.loadLocation = loadLocation;
    this.unloadLocation = unloadLocation;
    this.loadTime = loadTime;
    this.unloadTime = unloadTime;
    

    this.id=(long)(Math.random()*Long.MAX_VALUE);
}
 
开发者ID:RETIT,项目名称:continuous-performance-evaluation,代码行数:15,代码来源:Leg.java

示例6: Itinerary

import org.apache.commons.lang3.Validate; //导入方法依赖的package包/类
public Itinerary(List<Leg> legs) {
    Validate.notEmpty(legs);
    Validate.noNullElements(legs);

    this.legs = legs;
}
 
开发者ID:RETIT,项目名称:continuous-performance-evaluation,代码行数:7,代码来源:Itinerary.java


注:本文中的org.apache.commons.lang3.Validate.noNullElements方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。