Tabnine Logo
ArraySet.indexOf
Code IndexAdd Tabnine to your IDE (free)

How to use
indexOf
method
in
com.lody.virtual.helper.collection.ArraySet

Best Java code snippets using com.lody.virtual.helper.collection.ArraySet.indexOf (Showing top 18 results out of 315)

origin: android-hacker/VirtualXposed

/**
 * Check whether a value exists in the set.
 *
 * @param key The value to search for.
 * @return Returns true if the value exists, else false.
 */
@Override
public boolean contains(Object key) {
  return indexOf(key) >= 0;
}
origin: android-hacker/VirtualXposed

/**
 * Returns the index of a value in the set.
 *
 * @param key The value to search for.
 * @return Returns the index of the value if it exists, else a negative integer.
 */
public int indexOf(Object key) {
  return key == null ? indexOfNull() : indexOf(key, key.hashCode());
}
origin: android-hacker/VirtualXposed

} else {
  hash = value.hashCode();
  index = indexOf(value, hash);
origin: android-hacker/VirtualXposed

@Override
protected int colIndexOfKey(Object key) {
  return indexOf(key);
}
origin: darkskygit/VirtualApp

/**
 * Returns the index of a value in the set.
 *
 * @param key The value to search for.
 * @return Returns the index of the value if it exists, else a negative integer.
 */
public int indexOf(Object key) {
  return key == null ? indexOfNull() : indexOf(key, key.hashCode());
}
origin: android-hacker/VirtualXposed

@Override
protected int colIndexOfValue(Object value) {
  return indexOf(value);
}
origin: bzsome/VirtualApp-x326

/**
 * Returns the index of a value in the set.
 *
 * @param key The value to search for.
 * @return Returns the index of the value if it exists, else a negative integer.
 */
public int indexOf(Object key) {
  return key == null ? indexOfNull() : indexOf(key, key.hashCode());
}
origin: android-hacker/VirtualXposed

/**
 * Removes the specified object from this set.
 *
 * @param object the object to remove.
 * @return {@code true} if this set was modified, {@code false} otherwise.
 */
@Override
public boolean remove(Object object) {
  final int index = indexOf(object);
  if (index >= 0) {
    removeAt(index);
    return true;
  }
  return false;
}
origin: bzsome/VirtualApp-x326

} else {
  hash = value.hashCode();
  index = indexOf(value, hash);
origin: bzsome/VirtualApp-x326

/**
 * Check whether a value exists in the set.
 *
 * @param key The value to search for.
 * @return Returns true if the value exists, else false.
 */
@Override
public boolean contains(Object key) {
  return indexOf(key) >= 0;
}
origin: darkskygit/VirtualApp

} else {
  hash = value.hashCode();
  index = indexOf(value, hash);
origin: darkskygit/VirtualApp

/**
 * Check whether a value exists in the set.
 *
 * @param key The value to search for.
 * @return Returns true if the value exists, else false.
 */
@Override
public boolean contains(Object key) {
  return indexOf(key) >= 0;
}
origin: bzsome/VirtualApp-x326

@Override
protected int colIndexOfValue(Object value) {
  return indexOf(value);
}
origin: darkskygit/VirtualApp

@Override
protected int colIndexOfKey(Object key) {
  return indexOf(key);
}
origin: darkskygit/VirtualApp

@Override
protected int colIndexOfValue(Object value) {
  return indexOf(value);
}
origin: bzsome/VirtualApp-x326

@Override
protected int colIndexOfKey(Object key) {
  return indexOf(key);
}
origin: darkskygit/VirtualApp

/**
 * Removes the specified object from this set.
 *
 * @param object the object to remove.
 * @return {@code true} if this set was modified, {@code false} otherwise.
 */
@Override
public boolean remove(Object object) {
  final int index = indexOf(object);
  if (index >= 0) {
    removeAt(index);
    return true;
  }
  return false;
}
origin: bzsome/VirtualApp-x326

/**
 * Removes the specified object from this set.
 *
 * @param object the object to remove.
 * @return {@code true} if this set was modified, {@code false} otherwise.
 */
@Override
public boolean remove(Object object) {
  final int index = indexOf(object);
  if (index >= 0) {
    removeAt(index);
    return true;
  }
  return false;
}
com.lody.virtual.helper.collectionArraySetindexOf

Javadoc

Returns the index of a value in the set.

Popular methods of ArraySet

  • <init>
  • add
    Adds the specified object to this set. The set is not modified if it already contains the object.
  • addAll
    Perform an #add(Object) of all values in collection
  • allocArrays
  • clear
    Make the array map empty. All storage is released.
  • contains
    Check whether a value exists in the set.
  • ensureCapacity
    Ensure the array map can hold at least minimumCapacity items.
  • freeArrays
  • getCollection
  • indexOfNull
  • isEmpty
    Return true if the array map contains no items.
  • remove
    Removes the specified object from this set.
  • isEmpty,
  • remove,
  • removeAt,
  • size,
  • valueAt

Popular in Java

  • Creating JSON documents from java classes using gson
  • getApplicationContext (Context)
  • addToBackStack (FragmentTransaction)
  • putExtra (Intent)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • 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