Tabnine Logo
SparseArray.removeReturnOld
Code IndexAdd Tabnine to your IDE (free)

How to use
removeReturnOld
method
in
com.lody.virtual.helper.collection.SparseArray

Best Java code snippets using com.lody.virtual.helper.collection.SparseArray.removeReturnOld (Showing top 3 results out of 315)

origin: android-hacker/VirtualXposed

public E remove(String name, int uid) {
  SparseArray<E> uids = mMap.get(name);
  if (uids != null) {
    final E old = uids.removeReturnOld(uid);
    if (uids.size() == 0) {
      mMap.remove(name);
    }
    return old;
  }
  return null;
}
origin: darkskygit/VirtualApp

public E remove(String name, int uid) {
  SparseArray<E> uids = mMap.get(name);
  if (uids != null) {
    final E old = uids.removeReturnOld(uid);
    if (uids.size() == 0) {
      mMap.remove(name);
    }
    return old;
  }
  return null;
}
origin: bzsome/VirtualApp-x326

public E remove(String name, int uid) {
  SparseArray<E> uids = mMap.get(name);
  if (uids != null) {
    final E old = uids.removeReturnOld(uid);
    if (uids.size() == 0) {
      mMap.remove(name);
    }
    return old;
  }
  return null;
}
com.lody.virtual.helper.collectionSparseArrayremoveReturnOld

Popular methods of SparseArray

  • <init>
    Creates a new SparseArray containing no mappings that will not require any additional memory allocat
  • clear
    Removes all key-value mappings from this SparseArray.
  • delete
    Removes the mapping from the specified key, if there was any.
  • gc
  • get
    Gets the Object mapped from the specified key, or the specified Object if no such mapping has been m
  • keyAt
    Given an index in the range 0...size()-1, returns the key from the indexth key-value mapping that th
  • put
    Adds a mapping from the specified key to the specified value, replacing the previous mapping from th
  • remove
    Alias for #delete(int).
  • removeAt
    Removes the mapping at the specified index.
  • size
    Returns the number of key-value mappings that this SparseArray currently stores.
  • valueAt
    Given an index in the range 0...size()-1, returns the value from the indexth key-value mapping that
  • valueAt

Popular in Java

  • Creating JSON documents from java classes using gson
  • getExternalFilesDir (Context)
  • getContentResolver (Context)
  • runOnUiThread (Activity)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • Kernel (java.awt.image)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • JList (javax.swing)
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Option (scala)
  • CodeWhisperer alternatives
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