本文整理了Java中java.lang.Math.decrementExact()
方法的一些代码示例,展示了Math.decrementExact()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Math.decrementExact()
方法的具体详情如下:
包路径:java.lang.Math
类名称:Math
方法名:decrementExact
暂无
代码示例来源:origin: neo4j/neo4j
private int decrementActiveClients( int clientState )
{
return getStatus( clientState ) | Math.decrementExact( getActiveClients( clientState ) );
}
}
代码示例来源:origin: apache/sis
/**
* Creates a new {@code gco:UnlimitedInteger} for the given value.
* A null value is interpreted as infinity (i.e. no bound).
*/
UnlimitedInteger(Integer value, final boolean inclusive) {
if (value == null) {
isInfinite = Boolean.TRUE;
} else {
if (!inclusive) {
value = Math.decrementExact(value);
}
this.value = value;
}
}
代码示例来源:origin: apache/sis
/**
* Creates an iterator for the given region in the given raster.
*
* @param input the raster which contains the sample values to read.
* @param output the raster where to write the sample values, or {@code null} for read-only iterator.
* @param subArea the raster region where to perform the iteration, or {@code null}
* for iterating over all the raster domain.
* @param window size of the window to use in {@link #createWindow(TransferType)} method, or {@code null} if none.
*/
DefaultIterator(final Raster input, final WritableRaster output, final Rectangle subArea, final Dimension window) {
super(input, output, subArea, window);
currentLowerX = lowerX;
currentUpperX = upperX;
currentUpperY = upperY;
x = Math.decrementExact(lowerX); // Set the position before first pixel.
y = lowerY;
}
代码示例来源:origin: apache/sis
/**
* Creates an iterator for the given region in the given image.
*
* @param input the image which contains the sample values to read.
* @param output the image where to write the sample values, or {@code null} for read-only iterator.
* @param subArea the image region where to perform the iteration, or {@code null}
* for iterating over all the image domain.
* @param window size of the window to use in {@link #createWindow(TransferType)} method, or {@code null} if none.
*/
DefaultIterator(final RenderedImage input, final WritableRenderedImage output, final Rectangle subArea, final Dimension window) {
super(input, output, subArea, window);
tileX = Math.decrementExact(tileLowerX);
tileY = tileLowerY;
currentLowerX = lowerX;
currentUpperX = lowerX; // Really 'lower', so the position is the tile before the first tile.
currentUpperY = lowerY;
x = Math.decrementExact(lowerX); // Set the position before first pixel.
y = lowerY;
}
代码示例来源:origin: org.neo4j/neo4j-kernel
private int decrementActiveClients( int clientState )
{
return getStatus( clientState ) | Math.decrementExact( getActiveClients( clientState ) );
}
}
代码示例来源:origin: apache/sis
high = Math.decrementExact(high);
代码示例来源:origin: apache/sis
if (!isHighIncluded) {
for (int i=dimension; i < coordinates.length; i++) {
coordinates[i] = Math.decrementExact(coordinates[i]);
内容来源于网络,如有侵权,请联系作者删除!