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

  • Finding current android device location
  • scheduleAtFixedRate (ScheduledExecutorService)
  • putExtra (Intent)
  • requestLocationUpdates (LocationManager)
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • JButton (javax.swing)
  • 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