Tabnine Logo
IntSet.push
Code IndexAdd Tabnine to your IDE (free)

How to use
push
method
in
com.badlogic.gdx.utils.IntSet

Best Java code snippets using com.badlogic.gdx.utils.IntSet.push (Showing top 6 results out of 315)

origin: libgdx/libgdx

/** Skips checks for existing keys. */
private void addResize (int key) {
  if (key == 0) {
    hasZeroValue = true;
    return;
  }
  // Check for empty buckets.
  int index1 = key & mask;
  int key1 = keyTable[index1];
  if (key1 == EMPTY) {
    keyTable[index1] = key;
    if (size++ >= threshold) resize(capacity << 1);
    return;
  }
  int index2 = hash2(key);
  int key2 = keyTable[index2];
  if (key2 == EMPTY) {
    keyTable[index2] = key;
    if (size++ >= threshold) resize(capacity << 1);
    return;
  }
  int index3 = hash3(key);
  int key3 = keyTable[index3];
  if (key3 == EMPTY) {
    keyTable[index3] = key;
    if (size++ >= threshold) resize(capacity << 1);
    return;
  }
  push(key, index1, key1, index2, key2, index3, key3);
}
origin: libgdx/libgdx

/** Skips checks for existing keys. */
private void addResize (int key) {
  if (key == 0) {
    hasZeroValue = true;
    return;
  }
  // Check for empty buckets.
  int index1 = key & mask;
  int key1 = keyTable[index1];
  if (key1 == EMPTY) {
    keyTable[index1] = key;
    if (size++ >= threshold) resize(capacity << 1);
    return;
  }
  int index2 = hash2(key);
  int key2 = keyTable[index2];
  if (key2 == EMPTY) {
    keyTable[index2] = key;
    if (size++ >= threshold) resize(capacity << 1);
    return;
  }
  int index3 = hash3(key);
  int key3 = keyTable[index3];
  if (key3 == EMPTY) {
    keyTable[index3] = key;
    if (size++ >= threshold) resize(capacity << 1);
    return;
  }
  push(key, index1, key1, index2, key2, index3, key3);
}
origin: libgdx/libgdx

push(key, index1, key1, index2, key2, index3, key3);
return true;
origin: libgdx/libgdx

push(key, index1, key1, index2, key2, index3, key3);
return true;
origin: com.badlogicgames.gdx/gdx

/** Skips checks for existing keys. */
private void addResize (int key) {
  if (key == 0) {
    hasZeroValue = true;
    return;
  }
  // Check for empty buckets.
  int index1 = key & mask;
  int key1 = keyTable[index1];
  if (key1 == EMPTY) {
    keyTable[index1] = key;
    if (size++ >= threshold) resize(capacity << 1);
    return;
  }
  int index2 = hash2(key);
  int key2 = keyTable[index2];
  if (key2 == EMPTY) {
    keyTable[index2] = key;
    if (size++ >= threshold) resize(capacity << 1);
    return;
  }
  int index3 = hash3(key);
  int key3 = keyTable[index3];
  if (key3 == EMPTY) {
    keyTable[index3] = key;
    if (size++ >= threshold) resize(capacity << 1);
    return;
  }
  push(key, index1, key1, index2, key2, index3, key3);
}
origin: com.badlogicgames.gdx/gdx

push(key, index1, key1, index2, key2, index3, key3);
return true;
com.badlogic.gdx.utilsIntSetpush

Popular methods of IntSet

  • add
    Returns true if the key was not already in the set.
  • contains
  • iterator
    Returns an iterator for the keys in the set. Remove is supported. Note that the same iterator instan
  • remove
    Returns true if the key was removed.
  • <init>
    Creates a new set identical to the specified set.
  • addAll
  • addResize
    Skips checks for existing keys.
  • addStash
  • clear
    Clears the set and reduces the size of the backing arrays to be the specified capacity if they are l
  • containsKeyStash
  • ensureCapacity
    Increases the size of the backing array to accommodate the specified number of additional items. Use
  • hash2
  • ensureCapacity,
  • hash2,
  • hash3,
  • removeStash,
  • removeStashIndex,
  • resize

Popular in Java

  • Making http post requests using okhttp
  • getApplicationContext (Context)
  • findViewById (Activity)
  • setContentView (Activity)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • JFileChooser (javax.swing)
  • Best IntelliJ plugins
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