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

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

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

origin: libgdx/libgdx

public boolean equals (Object obj) {
  if (!(obj instanceof IntSet)) return false;
  IntSet other = (IntSet)obj;
  if (other.size != size) return false;
  if (other.hasZeroValue != hasZeroValue) return false;
  for (int i = 0, n = capacity + stashSize; i < n; i++)
    if (keyTable[i] != EMPTY && !other.contains(keyTable[i])) return false;
  return true;
}
origin: libgdx/libgdx

public boolean equals (Object obj) {
  if (!(obj instanceof IntSet)) return false;
  IntSet other = (IntSet)obj;
  if (other.size != size) return false;
  if (other.hasZeroValue != hasZeroValue) return false;
  for (int i = 0, n = capacity + stashSize; i < n; i++)
    if (keyTable[i] != EMPTY && !other.contains(keyTable[i])) return false;
  return true;
}
origin: libgdx/libgdx

@Override
public boolean isButtonPressed (int button) {
  return pressedButtons.contains(button);
}
origin: libgdx/libgdx

@Override
public boolean isButtonPressed (int button) {
  return pressedButtons.contains(button) && touched[0];
}
origin: libgdx/libgdx

@Override
public boolean isButtonPressed (int button) {
  return pressedButtons.contains(button) && touched[0];
}
origin: libgdx/libgdx

@Override
public boolean isButtonPressed (int button) {
  return pressedButtons.contains(button);
}
origin: libgdx/libgdx

private void handleEvent (NativeEvent e) {
  if (e.getType().equals("mousedown")) {
    if (!e.getEventTarget().equals(canvas) || pressedButtons.contains(getButton(e.getButton()))) {
      float mouseX = getRelativeX(e, canvas);
      float mouseY = getRelativeY(e, canvas);
    if (!pressedButtons.contains(getButton(e.getButton()))) return;
    this.pressedButtons.remove(getButton(e.getButton()));
    this.touched[0] = pressedButtons.size > 0;
origin: libgdx/libgdx

private void handleEvent (NativeEvent e) {
  if (e.getType().equals("mousedown")) {
    if (!e.getEventTarget().equals(canvas) || pressedButtons.contains(getButton(e.getButton()))) {
      float mouseX = getRelativeX(e, canvas);
      float mouseY = getRelativeY(e, canvas);
    if (!pressedButtons.contains(getButton(e.getButton()))) return;
    this.pressedButtons.remove(getButton(e.getButton()));
    this.touched[0] = pressedButtons.size > 0;
origin: com.badlogicgames.gdx/gdx

public boolean equals (Object obj) {
  if (!(obj instanceof IntSet)) return false;
  IntSet other = (IntSet)obj;
  if (other.size != size) return false;
  if (other.hasZeroValue != hasZeroValue) return false;
  for (int i = 0, n = capacity + stashSize; i < n; i++)
    if (keyTable[i] != EMPTY && !other.contains(keyTable[i])) return false;
  return true;
}
origin: com.badlogicgames.gdx/gdx-backend-lwjgl

@Override
public boolean isButtonPressed (int button) {
  return pressedButtons.contains(button);
}
origin: com.badlogicgames.gdx/gdx-backend-gwt

@Override
public boolean isButtonPressed (int button) {
  return pressedButtons.contains(button) && touched[0];
}
origin: com.badlogicgames.gdx/gdx-backend-gwt

private void handleEvent (NativeEvent e) {
  if (e.getType().equals("mousedown")) {
    if (!e.getEventTarget().equals(canvas) || pressedButtons.contains(getButton(e.getButton()))) {
      float mouseX = getRelativeX(e, canvas);
      float mouseY = getRelativeY(e, canvas);
    if (!pressedButtons.contains(getButton(e.getButton()))) return;
    this.pressedButtons.remove(getButton(e.getButton()));
    this.touched[0] = pressedButtons.size > 0;
com.badlogic.gdx.utilsIntSetcontains

Popular methods of IntSet

  • add
    Returns true if the key was not already in the set.
  • 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
  • hash3
  • hash2,
  • hash3,
  • push,
  • removeStash,
  • removeStashIndex,
  • resize

Popular in Java

  • Updating database using SQL prepared statement
  • compareTo (BigDecimal)
  • setContentView (Activity)
  • putExtra (Intent)
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • Top 17 Plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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