Tabnine Logo
IntArray.checkCapacity
Code IndexAdd Tabnine to your IDE (free)

How to use
checkCapacity
method
in
org.h2.util.IntArray

Best Java code snippets using org.h2.util.IntArray.checkCapacity (Showing top 2 results out of 315)

origin: com.h2database/com.springsource.org.h2

public void add(int value) {
  checkCapacity();
  data[size++] = value;
}
origin: com.h2database/com.springsource.org.h2

public void add(int i, int value) {
  if (SysProperties.CHECK && i > size) {
    throw new ArrayIndexOutOfBoundsException("i=" + i + " size=" + size);
  }
  checkCapacity();
  if (i == size) {
    add(value);
  } else {
    System.arraycopy(data, i, data, i + 1, size - i);
    data[i] = value;
    size++;
  }
}
org.h2.utilIntArraycheckCapacity

Popular methods of IntArray

  • <init>
    Create an int array with the given values and size.
  • add
  • get
    Get the value at the given index.
  • size
    Get the size of the list.
  • toArray
    Convert this list to an array. The target array must be big enough.
  • hashCode
  • remove
    Remove the value at the given index.
  • ensureCapacity
    Ensure the the underlying array is large enough for the given number of entries.
  • removeRange
    Remove a number of elements.
  • addValueSorted
  • findNextValueIndex
  • removeValue
  • findNextValueIndex,
  • removeValue,
  • set

Popular in Java

  • Finding current android device location
  • setScale (BigDecimal)
  • requestLocationUpdates (LocationManager)
  • getExternalFilesDir (Context)
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • CodeWhisperer alternatives
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