congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
Math.decrementExact
Code IndexAdd Tabnine to your IDE (free)

How to use
decrementExact
method
in
java.lang.Math

Best Java code snippets using java.lang.Math.decrementExact (Showing top 7 results out of 315)

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]);
java.langMathdecrementExact

Popular methods of Math

  • min
    Returns the smaller of two long values. That is, the result is the argument closer to the value of L
  • max
    Returns the greater of two long values. That is, the result is the argument closer to the value of L
  • abs
    Returns the absolute value of a long value. If the argument is not negative, the argument is returne
  • round
    Returns the closest int to the argument, with ties rounding up. Special cases: * If the argument is
  • pow
    Returns the value of the first argument raised to the power of the second argument. Special cases: *
  • sqrt
    Returns the correctly rounded positive square root of a double value. Special cases: * If the argume
  • ceil
    Returns the smallest (closest to negative infinity) double value that is greater than or equal to th
  • floor
    Returns the largest (closest to positive infinity) double value that is less than or equal to the ar
  • random
    Returns a double value with a positive sign, greater than or equal to 0.0 and less than 1.0. Returne
  • sin
    Returns the trigonometric sine of an angle. Special cases: * If the argument is NaN or an infinit
  • cos
    Returns the trigonometric cosine of an angle. Special cases: * If the argument is NaN or an infin
  • log
    Returns the natural logarithm (base e) of a doublevalue. Special cases: * If the argument is NaN
  • cos,
  • log,
  • exp,
  • toRadians,
  • atan2,
  • log10,
  • acos,
  • tan,
  • toDegrees,
  • atan

Popular in Java

  • Reading from database using SQL prepared statement
  • compareTo (BigDecimal)
  • startActivity (Activity)
  • requestLocationUpdates (LocationManager)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now