Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 572 for next (0.16 sec)

  1. android/guava/src/com/google/common/collect/ImmutableMapValues.java

          @Override
          public boolean hasNext() {
            return entryItr.hasNext();
          }
    
          @Override
          public V next() {
            return entryItr.next().getValue();
          }
        };
      }
    
      @Override
      public boolean contains(@CheckForNull Object object) {
        return object != null && Iterators.contains(iterator(), object);
      }
    
      @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 3K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/Multisets.java

         * counts are converted to strings as by {@code String.valueOf}.
         */
        @Override
        public String toString() {
          String text = String.valueOf(getElement());
          int n = getCount();
          return (n == 1) ? text : (text + " x " + n);
        }
      }
    
      /** An implementation of {@link Multiset#equals}. */
      static boolean equalsImpl(Multiset<?> multiset, @CheckForNull Object object) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 41.7K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/HashBiMap.java

          if (!hasNext()) {
            throw new NoSuchElementException();
          }
    
          // requireNonNull is safe because of the hasNext check.
          BiEntry<K, V> entry = requireNonNull(next);
          next = entry.nextInKeyInsertionOrder;
          toRemove = entry;
          remaining--;
          return output(entry);
        }
    
        @Override
        public void remove() {
          if (modCount != expectedModCount) {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Oct 13 14:11:58 GMT 2023
    - 24.5K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/ImmutableMapValues.java

          @Override
          public boolean hasNext() {
            return entryItr.hasNext();
          }
    
          @Override
          public V next() {
            return entryItr.next().getValue();
          }
        };
      }
    
      @Override
      public Spliterator<V> spliterator() {
        return CollectSpliterators.map(map.entrySet().spliterator(), Entry::getValue);
      }
    
      @Override
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 3.6K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/AbstractMapTester.java

      }
    
      private Entry<K, V> getEntryNullReplaces() {
        Iterator<Entry<K, V>> entries = getSampleElements().iterator();
        for (int i = 0; i < getNullLocation(); i++) {
          entries.next();
        }
        return entries.next();
      }
    
      /** @return an array of the proper size with {@code null} as the value of the middle element. */
      protected Entry<K, V>[] createArrayWithNullValue() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 7.5K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/HashMultisetTest.java

        multiset.add(multiset, 2);
        Multiset<Multiset<?>> copy = SerializableTester.reserialize(multiset);
        assertEquals(2, copy.size());
        assertSame(copy, copy.iterator().next());
      }
    
      @J2ktIncompatible
      @GwtIncompatible // Only used by @GwtIncompatible code
      private static class MultisetHolder implements Serializable {
        public Multiset<?> member;
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 4.4K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/SetsTest.java

        assertEquals(ImmutableSet.of(), i.next());
        assertEquals(ImmutableSet.of(1), i.next());
        assertEquals(ImmutableSet.of(2), i.next());
        assertEquals(ImmutableSet.of(2, 1), i.next());
        assertEquals(ImmutableSet.of(3), i.next());
        assertEquals(ImmutableSet.of(3, 1), i.next());
        assertEquals(ImmutableSet.of(3, 2), i.next());
        assertEquals(ImmutableSet.of(3, 2, 1), i.next());
        assertFalse(i.hasNext());
        try {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 49.3K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/TreeMultimapExplicitTest.java

        Entry<String, Collection<Integer>> entry = iterator.next();
        assertEquals(null, entry.getKey());
        assertThat(entry.getValue()).containsExactly(7, 3, 1);
        entry = iterator.next();
        assertEquals("tree", entry.getKey());
        assertThat(entry.getValue()).containsExactly(null, 0);
        entry = iterator.next();
        assertEquals("google", entry.getKey());
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 8.3K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/testing/ClusterException.java

      private ClusterException(Collection<? extends Throwable> exceptions) {
        super(
            exceptions.size() + " exceptions were thrown. The first exception is listed as a cause.",
            exceptions.iterator().next());
        ArrayList<? extends Throwable> temp = new ArrayList<>(exceptions);
        this.exceptions = Collections.unmodifiableCollection(temp);
      }
    
      /** See {@link #create(Collection)}. */
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 26 20:07:17 GMT 2023
    - 4K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/eventbus/SubscriberRegistryTest.java

        assertEquals(o1, three.next().target);
        assertFalse(three.hasNext());
    
        three = registry.getSubscribers("");
    
        registry.unregister(s2);
    
        assertEquals(s1, three.next().target);
        assertEquals(s2, three.next().target);
        assertEquals(o1, three.next().target);
        assertFalse(three.hasNext());
    
        Iterator<Subscriber> two = registry.getSubscribers("");
        assertEquals(s1, two.next().target);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 5.7K bytes
    - Viewed (0)
Back to top