Search Options

Results per page
Sort
Preferred Languages
Advance

Results 211 - 220 of 282 for hasNext (0.08 sec)

  1. guava-tests/test/com/google/common/collect/HashBiMapTest.java

        Entry<String, Integer> entry = inverseEntryItr.next();
        entry.setValue(3);
        assertEquals(immutableEntry("b", 2), inverseEntryItr.next());
        assertFalse(inverseEntryItr.hasNext());
        assertThat(map.entrySet())
            .containsExactly(immutableEntry(2, "b"), immutableEntry(3, "a"))
            .inOrder();
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/ConcurrentHashMultisetTest.java

        multiset = ConcurrentHashMultiset.create();
    
        multiset.add(KEY);
        multiset.add(KEY + "_2");
        multiset.add(KEY);
    
        int mutations = 0;
        for (Iterator<String> it = multiset.iterator(); it.hasNext(); ) {
          it.next();
          it.remove();
          mutations++;
        }
        assertTrue(multiset.isEmpty());
        assertEquals(3, mutations);
      }
    
      public void testSetCount_basic() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 14.2K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/collect/testing/AbstractMapTester.java

        replaceValue(expected, newEntry);
        expectContents(expected);
      }
    
      private void replaceValue(List<Entry<K, V>> expected, Entry<K, V> newEntry) {
        for (ListIterator<Entry<K, V>> i = expected.listIterator(); i.hasNext(); ) {
          if (Helpers.equal(i.next().getKey(), newEntry.getKey())) {
            i.set(newEntry);
            return;
          }
        }
    
        throw new IllegalArgumentException(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  4. android/guava-testlib/test/com/google/common/testing/ArbitraryInstancesTest.java

      public void testGet_collections() {
        assertEquals(ImmutableSet.of().iterator(), ArbitraryInstances.get(Iterator.class));
        assertFalse(ArbitraryInstances.get(PeekingIterator.class).hasNext());
        assertFalse(ArbitraryInstances.get(ListIterator.class).hasNext());
        assertEquals(ImmutableSet.of(), ArbitraryInstances.get(Iterable.class));
        assertEquals(ImmutableSet.of(), ArbitraryInstances.get(Set.class));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 21.8K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/Queues.java

       * queue.add(element);  // Needn't be in synchronized block
       * ...
       * synchronized (queue) {  // Must synchronize on queue!
       *   Iterator<E> i = queue.iterator(); // Must be in synchronized block
       *   while (i.hasNext()) {
       *     foo(i.next());
       *   }
       * }
       * }</pre>
       *
       * <p>Failure to follow this advice may result in non-deterministic behavior.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 26 14:11:14 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/SmbTransportImpl.java

            if ( targetDomain != null ) {
                targetDomain = targetDomain.toUpperCase(Locale.ROOT);
            }
    
            ListIterator<SmbSessionImpl> iter = this.sessions.listIterator();
            while ( iter.hasNext() ) {
                SmbSessionImpl ssn = iter.next();
                if ( ssn.matches(tf, targetHost, targetDomain) ) {
                    if ( log.isTraceEnabled() ) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Wed Jan 18 23:47:00 UTC 2023
    - 67K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/hash/Hashing.java

       *     have the same bit length
       */
      public static HashCode combineOrdered(Iterable<HashCode> hashCodes) {
        Iterator<HashCode> iterator = hashCodes.iterator();
        checkArgument(iterator.hasNext(), "Must be at least 1 hash code to combine.");
        int bits = iterator.next().bits();
        byte[] resultBytes = new byte[bits / 8];
        for (HashCode hashCode : hashCodes) {
          byte[] nextBytes = hashCode.asBytes();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Jul 19 16:02:36 UTC 2024
    - 29.3K bytes
    - Viewed (0)
  8. compat/maven-embedder/src/main/java/org/apache/maven/cli/props/MavenProperties.java

                        final Iterator<Entry<String, String>> keyIterator =
                                storage.entrySet().iterator();
    
                        public boolean hasNext() {
                            return keyIterator.hasNext();
                        }
    
                        public Entry<String, String> next() {
                            final Entry<String, String> entry = keyIterator.next();
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 38.2K bytes
    - Viewed (0)
  9. compat/maven-compat/src/main/java/org/apache/maven/project/artifact/DefaultMavenMetadataCache.java

            if (r1.size() != r2.size()) {
                return false;
            }
    
            for (Iterator<ArtifactRepository> it1 = r1.iterator(), it2 = r2.iterator(); it1.hasNext(); ) {
                if (!repositoryEquals(it1.next(), it2.next())) {
                    return false;
                }
            }
    
            return true;
        }
    
        /**
         * CacheRecord
         */
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  10. compat/maven-model/src/main/java/org/apache/maven/model/InputLocation.java

                locations = sourceLocations;
            } else {
                locations = new java.util.LinkedHashMap<>();
                for (java.util.Iterator<Integer> it = indices.iterator(); it.hasNext(); ) {
                    InputLocation location;
                    Integer index = it.next();
                    if (index.intValue() < 0) {
                        location = sourceLocations.get(Integer.valueOf(~index.intValue()));
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 11.5K bytes
    - Viewed (0)
Back to top