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

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

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

origin: libgdx/libgdx

boolean removeStash (int key) {
  int[] keyTable = this.keyTable;
  for (int i = capacity, n = i + stashSize; i < n; i++) {
    if (keyTable[i] == key) {
      removeStashIndex(i);
      size--;
      return true;
    }
  }
  return false;
}
origin: libgdx/libgdx

boolean removeStash (int key) {
  int[] keyTable = this.keyTable;
  for (int i = capacity, n = i + stashSize; i < n; i++) {
    if (keyTable[i] == key) {
      removeStashIndex(i);
      size--;
      return true;
    }
  }
  return false;
}
origin: libgdx/libgdx

public void remove () {
  if (currentIndex == INDEX_ZERO && set.hasZeroValue) {
    set.hasZeroValue = false;
  } else if (currentIndex < 0) {
    throw new IllegalStateException("next must be called before remove.");
  } else if (currentIndex >= set.capacity) {
    set.removeStashIndex(currentIndex);
    nextIndex = currentIndex - 1;
    findNextIndex();
  } else {
    set.keyTable[currentIndex] = EMPTY;
  }
  currentIndex = INDEX_ILLEGAL;
  set.size--;
}
origin: libgdx/libgdx

public void remove () {
  if (currentIndex == INDEX_ZERO && set.hasZeroValue) {
    set.hasZeroValue = false;
  } else if (currentIndex < 0) {
    throw new IllegalStateException("next must be called before remove.");
  } else if (currentIndex >= set.capacity) {
    set.removeStashIndex(currentIndex);
    nextIndex = currentIndex - 1;
    findNextIndex();
  } else {
    set.keyTable[currentIndex] = EMPTY;
  }
  currentIndex = INDEX_ILLEGAL;
  set.size--;
}
origin: com.badlogicgames.gdx/gdx

boolean removeStash (int key) {
  int[] keyTable = this.keyTable;
  for (int i = capacity, n = i + stashSize; i < n; i++) {
    if (keyTable[i] == key) {
      removeStashIndex(i);
      size--;
      return true;
    }
  }
  return false;
}
origin: com.badlogicgames.gdx/gdx

public void remove () {
  if (currentIndex == INDEX_ZERO && set.hasZeroValue) {
    set.hasZeroValue = false;
  } else if (currentIndex < 0) {
    throw new IllegalStateException("next must be called before remove.");
  } else if (currentIndex >= set.capacity) {
    set.removeStashIndex(currentIndex);
    nextIndex = currentIndex - 1;
    findNextIndex();
  } else {
    set.keyTable[currentIndex] = EMPTY;
  }
  currentIndex = INDEX_ILLEGAL;
  set.size--;
}
com.badlogic.gdx.utilsIntSetremoveStashIndex

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,
  • push,
  • removeStash,
  • resize

Popular in Java

  • Reactive rest calls using spring rest template
  • compareTo (BigDecimal)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • scheduleAtFixedRate (Timer)
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • Notification (javax.management)
  • JTextField (javax.swing)
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • 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