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

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

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

origin: android-hacker/VirtualXposed

/**
 * Remove all values in the array set that exist in the given collection.
 * @param collection The collection whose contents are to be used to remove values.
 * @return Returns true if any values were removed from the array set, else false.
 */
@Override
public boolean removeAll(Collection<?> collection) {
  boolean removed = false;
  for (Object value : collection) {
    removed |= remove(value);
  }
  return removed;
}
origin: android-hacker/VirtualXposed

/**
 * Perform a {@link #remove(Object)} of all values in <var>array</var>
 * @param array The array whose contents are to be removed.
 */
public boolean removeAll(ArraySet<? extends E> array) {
  // TODO: If array is sufficiently large, a marking approach might be beneficial. In a first
  //       pass, use the property that the sets are sorted by hash to make this linear passes
  //       (except for hash collisions, which means worst case still n*m), then do one
  //       collection pass into a new array. This avoids binary searches and excessive memcpy.
  final int N = array.mSize;
  // Note: ArraySet does not make thread-safety guarantees. So instead of OR-ing together all
  //       the single results, compare size before and after.
  final int originalSize = mSize;
  for (int i = 0; i < N; i++) {
    remove(array.valueAt(i));
  }
  return originalSize != mSize;
}
origin: bzsome/VirtualApp-x326

/**
 * Remove all values in the array set that exist in the given collection.
 * @param collection The collection whose contents are to be used to remove values.
 * @return Returns true if any values were removed from the array set, else false.
 */
@Override
public boolean removeAll(Collection<?> collection) {
  boolean removed = false;
  for (Object value : collection) {
    removed |= remove(value);
  }
  return removed;
}
origin: darkskygit/VirtualApp

/**
 * Remove all values in the array set that exist in the given collection.
 * @param collection The collection whose contents are to be used to remove values.
 * @return Returns true if any values were removed from the array set, else false.
 */
@Override
public boolean removeAll(Collection<?> collection) {
  boolean removed = false;
  for (Object value : collection) {
    removed |= remove(value);
  }
  return removed;
}
origin: darkskygit/VirtualApp

/**
 * Perform a {@link #remove(Object)} of all values in <var>array</var>
 * @param array The array whose contents are to be removed.
 */
public boolean removeAll(ArraySet<? extends E> array) {
  // TODO: If array is sufficiently large, a marking approach might be beneficial. In a first
  //       pass, use the property that the sets are sorted by hash to make this linear passes
  //       (except for hash collisions, which means worst case still n*m), then do one
  //       collection pass into a new array. This avoids binary searches and excessive memcpy.
  final int N = array.mSize;
  // Note: ArraySet does not make thread-safety guarantees. So instead of OR-ing together all
  //       the single results, compare size before and after.
  final int originalSize = mSize;
  for (int i = 0; i < N; i++) {
    remove(array.valueAt(i));
  }
  return originalSize != mSize;
}
origin: bzsome/VirtualApp-x326

/**
 * Perform a {@link #remove(Object)} of all values in <var>array</var>
 * @param array The array whose contents are to be removed.
 */
public boolean removeAll(ArraySet<? extends E> array) {
  // TODO: If array is sufficiently large, a marking approach might be beneficial. In a first
  //       pass, use the property that the sets are sorted by hash to make this linear passes
  //       (except for hash collisions, which means worst case still n*m), then do one
  //       collection pass into a new array. This avoids binary searches and excessive memcpy.
  final int N = array.mSize;
  // Note: ArraySet does not make thread-safety guarantees. So instead of OR-ing together all
  //       the single results, compare size before and after.
  final int originalSize = mSize;
  for (int i = 0; i < N; i++) {
    remove(array.valueAt(i));
  }
  return originalSize != mSize;
}
com.lody.virtual.helper.collectionArraySetremove

Javadoc

Removes the specified object from this 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
  • indexOf
  • indexOfNull
  • isEmpty
    Return true if the array map contains no items.
  • indexOfNull,
  • isEmpty,
  • removeAt,
  • size,
  • valueAt

Popular in Java

  • Reading from database using SQL prepared statement
  • setRequestProperty (URLConnection)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • scheduleAtFixedRate (Timer)
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Top plugins for Android Studio
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