本文整理了Java中com.bc.ceres.core.Assert.notNull()
方法的一些代码示例,展示了Assert.notNull()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Assert.notNull()
方法的具体详情如下:
包路径:com.bc.ceres.core.Assert
类名称:Assert
方法名:notNull
暂无
代码示例来源:origin: senbox-org/snap-desktop
public UndoableDisplacementBandsCreation(Product product, Band[] displacementBands) {
Assert.notNull(product, "product");
Assert.notNull(displacementBands, "displacementBands");
this.product = product;
this.displacementBands = displacementBands;
}
代码示例来源:origin: bcdev/beam
public DefaultPageComponentContext(ApplicationPage page, PageComponentPane pane) {
Assert.notNull(page, "page");
this.page = page;
this.pane = pane;
}
代码示例来源:origin: senbox-org/snap-desktop
@SuppressWarnings("unchecked")
public UndoableProductNodeDeletion(ProductNodeGroup<T> productNodeGroup, T productNode, int index) {
Assert.notNull(productNodeGroup, "group");
Assert.notNull(productNode, "node");
this.productNodeGroup = productNodeGroup;
this.productNode = productNode;
this.index = index;
}
代码示例来源:origin: senbox-org/snap-desktop
public ReadProductOperation(File file, String formatName) {
Assert.notNull(file, "file");
Assert.notNull(formatName, "formatName");
this.file = file;
this.formatName = formatName;
ph = PhWrapper.NULL;
}
代码示例来源:origin: senbox-org/snap-desktop
/**
* @param progressHandle The progress handle.
*/
public void setProgressHandle(ProgressHandle progressHandle) {
Assert.notNull(progressHandle);
this.progressHandle = progressHandle;
}
代码示例来源:origin: senbox-org/snap-desktop
public UndoableAttachGeoCoding(Product product, T pixelGeoCoding) {
Assert.notNull(product, "product");
Assert.notNull(pixelGeoCoding, "pixelGeoCoding");
this.product = product;
this.pixelGeoCoding = pixelGeoCoding;
}
代码示例来源:origin: bcdev/beam
Reprojector(PlanetaryGrid planetaryGrid, TemporalBinRenderer temporalBinRenderer) {
Assert.notNull(planetaryGrid, "planetaryGrid");
Assert.notNull(temporalBinRenderer, "binRenderer");
this.planetaryGrid = planetaryGrid;
this.temporalBinRenderer = temporalBinRenderer;
this.rasterRegion = temporalBinRenderer.getRasterRegion();
}
代码示例来源:origin: bcdev/beam
@Override
public void writeSession(Session session, Writer writer) throws IOException {
Assert.notNull(session, "session");
Assert.notNull(writer, "writer");
createXStream().toXML(session, writer);
}
}
代码示例来源:origin: bcdev/beam
private void registerAlias(String spiClassName, String aliasName) {
Assert.notNull(aliasName, "aliasName");
Assert.notNull(spiClassName, "spiClassName");
if (classNames.get(aliasName) != null) {
BeamLogManager.getSystemLogger().severe(
spiClassName + ':' + aliasName + " conflicts with " + classNames.get(aliasName) + ':' + aliasName);
}
classNames.put(aliasName, spiClassName);
}
代码示例来源:origin: senbox-org/snap-desktop
/**
* @deprecated since BEAM 5, use {@link #OperatorParameterSupport(OperatorDescriptor, PropertySet, Map, ParameterUpdater)}
*/
@Deprecated
public OperatorParameterSupport(Class<? extends Operator> opType,
PropertySet propertySet,
Map<String, Object> parameterMap,
ParameterUpdater parameterUpdater) {
Assert.notNull(opType, "opType");
init(opType, null, propertySet, parameterMap, parameterUpdater);
}
代码示例来源:origin: senbox-org/snap-desktop
@Override
public void setSubTaskName(String subTaskName) {
Assert.notNull(progressHandle);
progressHandle.progress(subTaskName);
}
代码示例来源:origin: bcdev/beam
public GETASSE30ElevationModel(GETASSE30ElevationModelDescriptor descriptor, Resampling resampling) throws IOException {
Assert.notNull(descriptor, "descriptor");
Assert.notNull(resampling, "resampling");
this.descriptor = descriptor;
this.resampling = resampling;
this.resamplingIndex = resampling.createIndex();
this.resamplingRaster = this;
this.elevationTiles = createElevationTiles();
this.elevationTileCache = new ArrayList<GETASSE30ElevationTile>();
}
代码示例来源:origin: bcdev/beam
public void setXName(String xName) {
Assert.notNull(xName, "xName");
if (!ObjectUtils.equalObjects(this.xName, xName)) {
this.xName = xName;
invalidate();
}
}
代码示例来源:origin: senbox-org/snap-desktop
@Override
public Layer createLayer(LayerContext ctx, PropertySet configuration) {
Assert.notNull(ctx, "ctx");
final ProductLayerContext plc = (ProductLayerContext) ctx;
final ProductNodeGroup<VectorDataNode> vectorDataGroup = plc.getProduct().getVectorDataGroup();
return new VectorDataCollectionLayer(this, vectorDataGroup, configuration, plc);
}
}
代码示例来源:origin: bcdev/beam
public DefaultDiagramGraph(String xName,
double[] xValues,
String yName,
double[] yValues) {
Assert.notNull(yName, "yName");
setXName(xName);
setYName(yName);
setXYValues(xValues, yValues);
}
代码示例来源:origin: bcdev/beam
public DimKey(Dimension... dims) {
Assert.argument(dims.length >= 1, "dims.length >= 1");
for (Dimension dim : dims) {
Assert.notNull(dim, "dim");
}
this.dims = dims;
xDimIndex = findXDimensionIndex();
yDimIndex = findYDimensionIndex();
}
代码示例来源:origin: bcdev/beam
public VectorDataCollectionLayer(VectorDataCollectionLayerType layerType,
ProductNodeGroup<VectorDataNode> vectorDataGroup,
PropertySet configuration) {
super(layerType, configuration, "Vector data");
Assert.notNull(vectorDataGroup, "vectorDataGroup");
reference = new WeakReference<ProductNodeGroup<VectorDataNode>>(vectorDataGroup);
pnl = new PNL();
setId(ID);
vectorDataGroup.getProduct().addProductNodeListener(pnl);
}
代码示例来源:origin: senbox-org/snap-desktop
public VectorDataCollectionLayer(VectorDataCollectionLayerType layerType,
ProductNodeGroup<VectorDataNode> vectorDataGroup,
PropertySet configuration,
ProductLayerContext plc) {
super(layerType, configuration, "Vector data");
Assert.notNull(vectorDataGroup, "vectorDataGroup");
reference = new WeakReference<>(vectorDataGroup);
pnl = new PNL();
this.plc = plc;
setId(ID);
vectorDataGroup.getProduct().addProductNodeListener(pnl);
}
代码示例来源:origin: senbox-org/snap-desktop
public static void deleteRasterDataNode(RasterDataNode raster) {
Assert.notNull(raster);
List<RasterDataNode> virtualBands = getReferencedVirtualBands(raster);
List<RasterDataNode> validMaskNodes = getReferencedValidMasks(raster);
List<RasterDataNode> masks = getReferencedMasks(raster);
RasterDataNode[] rasters = new RasterDataNode[]{raster};
String typeName = getTypeName(rasters);
String message = formatPromptMessage(typeName, rasters, virtualBands, validMaskNodes, masks);
deleteRasterDataNodesImpl(rasters, message);
}
代码示例来源:origin: bcdev/beam
@Override
public boolean add(VectorDataNode vectorDataNode) {
Assert.notNull(vectorDataNode, "node");
VectorDataNode permanentNode = getPermanentNode(vectorDataNode.getName());
if (permanentNode != null) {
permanentNode.getFeatureCollection().addAll(vectorDataNode.getFeatureCollection());
return false;
}
return super.add(vectorDataNode);
}
内容来源于网络,如有侵权,请联系作者删除!