Home
last modified time | relevance | path

Searched refs:lastEntry (Results 1 – 25 of 68) sorted by relevance

123

/external/guava/android/guava/src/com/google/common/collect/
DCompactLinkedHashMap.java86 private transient int lastEntry; field in CompactLinkedHashMap
107 this.lastEntry = ENDPOINT; in init()
157 lastEntry = pred; in setSucceeds()
166 setSucceeds(lastEntry, entryIndex); in insertEntry()
176 setSucceeds(lastEntry, index); in accessEntry()
217 this.lastEntry = ENDPOINT; in clear()
DObjectCountLinkedHashMap.java66 private transient int lastEntry; field in ObjectCountLinkedHashMap
91 lastEntry = ENDPOINT; in init()
137 lastEntry = pred; in setSucceeds()
146 setSucceeds(lastEntry, entryIndex); in insertEntry()
173 this.lastEntry = ENDPOINT; in clear()
DCompactLinkedHashSet.java118 private transient int lastEntry; field in CompactLinkedHashSet
132 this.lastEntry = ENDPOINT; in init()
177 lastEntry = pred; in setSucceeds()
186 setSucceeds(lastEntry, entryIndex); in insertEntry()
237 this.lastEntry = ENDPOINT; in clear()
DForwardingNavigableMap.java77 return headMap(key, false).lastEntry(); in standardLowerEntry()
105 return headMap(key, true).lastEntry(); in standardFloorEntry()
207 public Entry<K, V> lastEntry() { in lastEntry() method in ForwardingNavigableMap
208 return delegate().lastEntry(); in lastEntry()
225 Entry<K, V> entry = lastEntry(); in standardLastKey()
291 private Entry<K, V> nextOrNull = forward().lastEntry(); in entryIterator()
DAbstractNavigableMap.java50 public Entry<K, V> lastEntry() { in lastEntry() method in AbstractNavigableMap
78 Entry<K, V> entry = lastEntry(); in lastKey()
89 return headMap(key, false).lastEntry(); in lowerEntry()
95 return headMap(key, true).lastEntry(); in floorEntry()
DDescendingImmutableSortedMultiset.java41 return forward.lastEntry(); in firstEntry()
45 public Entry<E> lastEntry() { in lastEntry() method in DescendingImmutableSortedMultiset
DSortedMultisets.java87 return getElementOrThrow(multiset().lastEntry()); in last()
100 return getElementOrNull(multiset().headMultiset(e, OPEN).lastEntry()); in lower()
105 return getElementOrNull(multiset().headMultiset(e, CLOSED).lastEntry()); in floor()
DUnmodifiableSortedMultiset.java78 public Entry<E> lastEntry() { in lastEntry() method in UnmodifiableSortedMultiset
79 return delegate().lastEntry(); in lastEntry()
/external/guava/guava/src/com/google/common/collect/
DCompactLinkedHashMap.java91 private transient int lastEntry; field in CompactLinkedHashMap
112 this.lastEntry = ENDPOINT; in init()
162 lastEntry = pred; in setSucceeds()
171 setSucceeds(lastEntry, entryIndex); in insertEntry()
181 setSucceeds(lastEntry, index); in accessEntry()
278 this.lastEntry = ENDPOINT; in clear()
DCompactLinkedHashSet.java120 private transient int lastEntry; field in CompactLinkedHashSet
134 this.lastEntry = ENDPOINT; in init()
179 lastEntry = pred; in setSucceeds()
188 setSucceeds(lastEntry, entryIndex); in insertEntry()
244 this.lastEntry = ENDPOINT; in clear()
DForwardingNavigableMap.java78 return headMap(key, false).lastEntry(); in standardLowerEntry()
106 return headMap(key, true).lastEntry(); in standardFloorEntry()
208 public Entry<K, V> lastEntry() { in lastEntry() method in ForwardingNavigableMap
209 return delegate().lastEntry(); in lastEntry()
226 Entry<K, V> entry = lastEntry(); in standardLastKey()
297 private Entry<K, V> nextOrNull = forward().lastEntry(); in entryIterator()
DAbstractNavigableMap.java47 public @Nullable Entry<K, V> lastEntry() { in lastEntry() method in AbstractNavigableMap
73 Entry<K, V> entry = lastEntry(); in lastKey()
83 return headMap(key, false).lastEntry(); in lowerEntry()
88 return headMap(key, true).lastEntry(); in floorEntry()
DDescendingImmutableSortedMultiset.java41 return forward.lastEntry(); in firstEntry()
45 public Entry<E> lastEntry() { in lastEntry() method in DescendingImmutableSortedMultiset
DSortedMultisets.java87 return getElementOrThrow(multiset().lastEntry()); in last()
100 return getElementOrNull(multiset().headMultiset(e, OPEN).lastEntry()); in lower()
105 return getElementOrNull(multiset().headMultiset(e, CLOSED).lastEntry()); in floor()
DUnmodifiableSortedMultiset.java78 public Entry<E> lastEntry() { in lastEntry() method in UnmodifiableSortedMultiset
79 return delegate().lastEntry(); in lastEntry()
/external/guava/guava-tests/test/com/google/common/collect/
DForwardingNavigableMapTest.java245 public Entry<K, V> lastEntry() {
294 assertNull(forwarding.lastEntry());
296 assertEquals(immutableEntry("b", 2), forwarding.lastEntry());
298 assertEquals(immutableEntry("c", 3), forwarding.lastEntry());
300 assertEquals(immutableEntry("c", 3), forwarding.lastEntry());
302 assertEquals(immutableEntry("b", 2), forwarding.lastEntry());
/external/guava/android/guava-tests/test/com/google/common/collect/
DForwardingNavigableMapTest.java245 public Entry<K, V> lastEntry() {
294 assertNull(forwarding.lastEntry());
296 assertEquals(immutableEntry("b", 2), forwarding.lastEntry());
298 assertEquals(immutableEntry("c", 3), forwarding.lastEntry());
300 assertEquals(immutableEntry("c", 3), forwarding.lastEntry());
302 assertEquals(immutableEntry("b", 2), forwarding.lastEntry());
/external/jline/src/src/main/java/jline/
DHistory.java128 int lastEntry = history.size() - 1; in moveToLastEntry() local
129 if (lastEntry >= 0 && lastEntry != currentIndex) { in moveToLastEntry()
/external/cldr/tools/java/org/unicode/cldr/util/
DSimpleDictionary.java33 private CharSequence lastEntry = ""; field in SimpleDictionary
74 if (CharUtilities.compare(text, lastEntry) <= 0) { in addMapping()
77 lastEntry = text; in addMapping()
/external/guava/guava-testlib/src/com/google/common/collect/testing/google/
DMultisetNavigationTester.java111 assertNull(sortedMultiset.headMultiset(e0(), type).lastEntry()); in testEmptyMultisetNearby()
118 assertNull(sortedMultiset.lastEntry()); in testEmptyMultisetLast()
146 assertNull(sortedMultiset.headMultiset(e0(), OPEN).lastEntry()); in testSingletonMultisetNearby()
147 assertNull(sortedMultiset.tailMultiset(e0(), OPEN).lastEntry()); in testSingletonMultisetNearby()
149 assertEquals(a, sortedMultiset.headMultiset(e0(), CLOSED).lastEntry()); in testSingletonMultisetNearby()
155 assertEquals(a, sortedMultiset.lastEntry()); in testSingletonMultisetLast()
190 assertEquals(null, sortedMultiset.headMultiset(a.getElement(), OPEN).lastEntry()); in testLower()
191 assertEquals(a, sortedMultiset.headMultiset(b.getElement(), OPEN).lastEntry()); in testLower()
192 assertEquals(a, sortedMultiset.headMultiset(c.getElement(), OPEN).lastEntry()); in testLower()
198 assertEquals(a, sortedMultiset.headMultiset(a.getElement(), CLOSED).lastEntry()); in testFloor()
[all …]
/external/guava/android/guava-testlib/src/com/google/common/collect/testing/google/
DMultisetNavigationTester.java111 assertNull(sortedMultiset.headMultiset(e0(), type).lastEntry()); in testEmptyMultisetNearby()
118 assertNull(sortedMultiset.lastEntry()); in testEmptyMultisetLast()
146 assertNull(sortedMultiset.headMultiset(e0(), OPEN).lastEntry()); in testSingletonMultisetNearby()
147 assertNull(sortedMultiset.tailMultiset(e0(), OPEN).lastEntry()); in testSingletonMultisetNearby()
149 assertEquals(a, sortedMultiset.headMultiset(e0(), CLOSED).lastEntry()); in testSingletonMultisetNearby()
155 assertEquals(a, sortedMultiset.lastEntry()); in testSingletonMultisetLast()
190 assertEquals(null, sortedMultiset.headMultiset(a.getElement(), OPEN).lastEntry()); in testLower()
191 assertEquals(a, sortedMultiset.headMultiset(b.getElement(), OPEN).lastEntry()); in testLower()
192 assertEquals(a, sortedMultiset.headMultiset(c.getElement(), OPEN).lastEntry()); in testLower()
198 assertEquals(a, sortedMultiset.headMultiset(a.getElement(), CLOSED).lastEntry()); in testFloor()
[all …]
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/archivers/zip/
DMaven221MultiVolumeTest.java84 final ArchiveEntry lastEntry = zi.getNextEntry(); in testRead7ZipMultiVolumeArchiveForStream() local
85 assertEquals(LAST_ENTRY_NAME, lastEntry.getName()); in testRead7ZipMultiVolumeArchiveForStream()
/external/guava/guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/
DLocalCache.java543 Entry<K, Timestamped<V>> lastEntry; field in LocalCache.EntryIterator
560 lastEntry = nextEntry; in next()
562 return new WriteThroughEntry(lastEntry.getKey(), lastEntry.getValue().getValue()); in next()
582 checkState(lastEntry != null); in remove()
583 LocalCache.this.remove(lastEntry.getKey(), lastEntry.getValue()); in remove()
584 lastEntry = null; in remove()
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
DUnmodifiableSortedMultiset.java74 public Entry<E> lastEntry() { in lastEntry() method in UnmodifiableSortedMultiset
75 return delegate().lastEntry(); in lastEntry()
DDescendingMultiset.java97 return forwardMultiset().lastEntry(); in firstEntry()
101 public Entry<E> lastEntry() { in lastEntry() method in DescendingMultiset

123