congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
LongSparseArray.keyAt
Code IndexAdd Tabnine to your IDE (free)

How to use
keyAt
method
in
androidx.collection.LongSparseArray

Best Java code snippets using androidx.collection.LongSparseArray.keyAt (Showing top 5 results out of 315)

origin: airbnb/epoxy

long thisKey = modelsById.keyAt(i);
long thatKey = that.modelsById.keyAt(i);
origin: airbnb/lottie-android

long key = layerMap.keyAt(i);
BaseLayer layerView = layerMap.get(key);
origin: cbeyls/fosdem-companion-android

public long[] getCheckedItemIds() {
  final LongSparseArray<Integer> idStates = checkedIdStates;
  if (idStates == null) {
    return new long[0];
  }
  final int count = idStates.size();
  final long[] ids = new long[count];
  for (int i = 0; i < count; i++) {
    ids[i] = idStates.keyAt(i);
  }
  return ids;
}
origin: cbeyls/fosdem-companion-android

@Override
public void writeToParcel(Parcel out, int flags) {
  out.writeInt(checkedItemCount);
  out.writeSparseBooleanArray(checkStates);
  final int n = checkedIdStates != null ? checkedIdStates.size() : -1;
  out.writeInt(n);
  for (int i = 0; i < n; i++) {
    out.writeLong(checkedIdStates.keyAt(i));
    out.writeInt(checkedIdStates.valueAt(i));
  }
}
origin: cbeyls/fosdem-companion-android

final long id = checkedIdStates.keyAt(checkedIndex);
final int lastPos = checkedIdStates.valueAt(checkedIndex);
androidx.collectionLongSparseArraykeyAt

Popular methods of LongSparseArray

  • put
  • <init>
  • get
  • size
  • valueAt
  • delete
  • remove
  • append
  • clear
  • clone
  • setValueAt
  • setValueAt

Popular in Java

  • Reading from database using SQL prepared statement
  • startActivity (Activity)
  • findViewById (Activity)
  • getContentResolver (Context)
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • BoxLayout (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