- Sort Score
- Result 10 results
- Languages All
Results 301 - 310 of 737 for Operator (0.07 sec)
-
guava-tests/test/com/google/common/collect/ImmutableMultisetTest.java
Iterator<String> iterator = asList("a", "b", "a").iterator(); Multiset<String> multiset = ImmutableMultiset.copyOf(iterator); assertEquals(HashMultiset.create(asList("a", "b", "a")), multiset); } public void testCopyOf_iteratorContainingNull() { Iterator<@Nullable String> iterator = Arrays.<@Nullable String>asList("a", null, "b").iterator(); assertThrows(
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 24.9K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Sets.java
return set1.isEmpty() && set2.isEmpty(); } @Override public UnmodifiableIterator<E> iterator() { return new AbstractIterator<E>() { final Iterator<? extends E> itr1 = set1.iterator(); final Iterator<? extends E> itr2 = set2.iterator(); @Override @CheckForNull protected E computeNext() { if (itr1.hasNext()) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 21 14:28:19 UTC 2024 - 78.8K bytes - Viewed (0) -
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSortedSet.java
} catch (IllegalArgumentException e) { return emptySet(comparator()); } } @CheckForNull E higher(E e) { checkNotNull(e); Iterator<E> iterator = tailSet(e).iterator(); while (iterator.hasNext()) { E higher = iterator.next(); if (comparator().compare(e, higher) < 0) { return higher; } } return null; } @CheckForNull
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Aug 19 16:21:24 UTC 2024 - 15.5K bytes - Viewed (0) -
android/guava/src/com/google/common/base/PairwiseEquivalence.java
this.elementEquivalence = Preconditions.checkNotNull(elementEquivalence); } @Override protected boolean doEquivalent(Iterable<T> iterableA, Iterable<T> iterableB) { Iterator<T> iteratorA = iterableA.iterator(); Iterator<T> iteratorB = iterableB.iterator(); while (iteratorA.hasNext() && iteratorB.hasNext()) { if (!elementEquivalence.equivalent(iteratorA.next(), iteratorB.next())) { return false; } }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Feb 23 15:09:35 UTC 2023 - 2.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/LinkedHashMultimapTest.java
assertThat(multimap.keySet()).containsExactly("foo", "bar", "cow").inOrder(); assertThat(multimap.values()).containsExactly(5, 4, 3, 2, 1).inOrder(); Iterator<Entry<String, Integer>> entryIterator = multimap.entries().iterator(); assertEquals(immutableEntry("foo", 5), entryIterator.next()); assertEquals(immutableEntry("bar", 4), entryIterator.next());
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 18.6K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ForwardingMap.java
* that approach would not lead to an infinite loop. * * @since 7.0 */ @CheckForNull protected V standardRemove(@CheckForNull Object key) { Iterator<Entry<K, V>> entryIterator = entrySet().iterator(); while (entryIterator.hasNext()) { Entry<K, V> entry = entryIterator.next(); if (Objects.equal(entry.getKey(), key)) { V value = entry.getValue();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri May 12 15:26:39 UTC 2023 - 9.9K bytes - Viewed (0) -
android/guava/src/com/google/common/reflect/MutableTypeToInstanceMap.java
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Jun 14 17:55:55 UTC 2024 - 5.8K bytes - Viewed (0) -
guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedArrayBlockingQueue.java
* @return an iterator over the elements in this queue in proper sequence */ @CanIgnoreReturnValue @Override public Iterator<E> iterator() { final Monitor monitor = this.monitor; monitor.enter(); try { return new Itr(); } finally { monitor.leave(); } } /** Iterator for MonitorBasedArrayBlockingQueue */ private class Itr implements Iterator<E> {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Apr 19 19:24:36 UTC 2023 - 22.5K bytes - Viewed (0) -
src/test/java/org/codelibs/core/collection/LruHashMapTest.java
assertThat(lru.get("aaa"), is("111")); Iterator<String> i = lru.keySet().iterator(); assertThat(i.next(), is("bbb")); assertThat(i.next(), is("ccc")); assertThat(i.next(), is("aaa")); lru.put("ddd", "444"); assertThat(lru.size(), is(3)); assertThat(lru.get("bbb"), is(nullValue())); i = lru.keySet().iterator(); assertThat(i.next(), is("ccc"));
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 1.7K bytes - Viewed (0) -
guava-tests/benchmark/com/google/common/base/JoinerBenchmark.java
int dummy = 0; for (int i = 0; i < reps; i++) { StringBuilder sb = new StringBuilder(); Iterator<String> iterator = components.iterator(); if (iterator.hasNext()) { sb.append(iterator.next().toString()); while (iterator.hasNext()) { sb.append(DELIMITER_STRING); sb.append(iterator.next()); } } dummy ^= sb.toString().length(); } return dummy; }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 4.9K bytes - Viewed (0)