Tabnine Logo
LongSparseArray.size
Code IndexAdd Tabnine to your IDE (free)

How to use
size
method
in
androidx.collection.LongSparseArray

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

origin: airbnb/epoxy

@Override
public boolean hasNext() {
 return position < holders.size();
}
origin: airbnb/epoxy

public int size() {
 return holders.size();
}
origin: airbnb/epoxy

int thisSize = modelsById.size();
int thatSize = that.modelsById.size();
origin: airbnb/lottie-android

for (int i = 0; i < layerMap.size(); i++) {
 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: codeka/wwmmo

 @Override
 public void run() {
  synchronized (scene.lock) {
   for (int i = 0; i < sceneObjects.size(); i++) {
    SceneObjectInfo sceneObjectInfo = (SceneObjectInfo) sceneObjects.valueAt(i).getTag();
    if (sceneObjectInfo != null && sceneObjectInfo.fleet != null) {
     updateMovingFleet(sceneObjects.valueAt(i));
    }
   }
  }
  App.i.getTaskRunner().runTask(
    updateMovingFleetsRunnable,
    Threads.UI,
    UPDATE_MOVING_FLEETS_TIME_MS);
 }
};
origin: cbeyls/fosdem-companion-android

for (int checkedIndex = 0; checkedIndex < checkedIdStates.size(); checkedIndex++) {
  final long id = checkedIdStates.keyAt(checkedIndex);
  final int lastPos = checkedIdStates.valueAt(checkedIndex);
androidx.collectionLongSparseArraysize

Popular methods of LongSparseArray

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

Popular in Java

  • Running tasks concurrently on multiple threads
  • addToBackStack (FragmentTransaction)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • onRequestPermissionsResult (Fragment)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • Github Copilot 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