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

  • Creating JSON documents from java classes using gson
  • getSystemService (Context)
  • runOnUiThread (Activity)
  • getSharedPreferences (Context)
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Option (scala)
  • Top 12 Jupyter Notebook extensions
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