private int decrementActiveClients( int clientState ) { return getStatus( clientState ) | Math.decrementExact( getActiveClients( clientState ) ); } }
/** * 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; } }
/** * 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; }
/** * 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; }
private int decrementActiveClients( int clientState ) { return getStatus( clientState ) | Math.decrementExact( getActiveClients( clientState ) ); } }
high = Math.decrementExact(high);
if (!isHighIncluded) { for (int i=dimension; i < coordinates.length; i++) { coordinates[i] = Math.decrementExact(coordinates[i]);