Searched refs:mElements (Results 1 – 3 of 3) sorted by relevance
167 private TreeMap<Long, Pinnable<E>> mElements; field in ConcurrentSharedRingBuffer189 mElements = new TreeMap<Long, Pinnable<E>>(); in ConcurrentSharedRingBuffer()237 existingElement = mElements.get(newKey); in swapLeast()256 mElements.put(newKey, p); in swapLeast()304 mElements.remove(toSwapEntry.first); in swapLeast()315 mElements.put(newKey, toSwap); in swapLeast()342 if (mElements.isEmpty()) { in tryPin()346 entry = mElements.get(key); in tryPin()384 Pinnable<E> element = mElements.get(key); in release()428 if (mElements.isEmpty()) { in tryPinGreatest()[all …]
29 private final ArrayDeque<T> mElements; field in SlidingWindow34 mElements = new ArrayDeque<>(mMaxSize); in SlidingWindow()38 if (mElements.size() == mMaxSize) { in add()39 mElements.removeFirst(); in add()41 mElements.addLast(sample); in add()50 return mElements.iterator(); in iterator()54 return mElements.stream(); in stream()58 return mElements.size(); in size()
40 private final SparseArray<T> mElements = new SparseArray<>(); field in DiagnosticEventBuilder.DefaultedArray58 mElements.put(index, element); in set()64 return mElements.get(index, mDefaultValue); in get()72 mElements.clear(); in clear()