Search Options

Results per page
Sort
Preferred Languages
Advance

Results 201 - 210 of 282 for hasNext (0.07 sec)

  1. src/main/java/jcifs/smb1/http/NetworkExplorer.java

                len = name.length(); 
                if( len > maxLen ) {
                    maxLen = len;
                }
    
                iter = sorted.listIterator();
                for( j = 0; iter.hasNext(); j++ ) {
                    if( sort == 0 ) {
                        if( compareNames( dirents[i], name, (SmbFile)iter.next() ) < 0 ) {
                            break;
                        }
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Wed Jan 22 03:57:31 UTC 2020
    - 19.7K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/LinkedListMultimapTest.java

        assertEquals(2, (int) entry.getValue());
        entry.setValue(4);
        entry = entries.next();
        assertEquals("bar", entry.getKey());
        assertEquals(3, (int) entry.getValue());
        assertFalse(entries.hasNext());
        entries.remove();
        assertEquals("{bar=[1], foo=[4]}", map.toString());
      }
    
      public void testLinkedAsMapEntries() {
        Multimap<String, Integer> map = create();
        map.put("bar", 1);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 18K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/Collections2.java

        }
    
        @Override
        public boolean removeAll(final Collection<?> collection) {
          boolean changed = false;
          Iterator<E> itr = unfiltered.iterator();
          while (itr.hasNext()) {
            E e = itr.next();
            if (predicate.apply(e) && collection.contains(e)) {
              itr.remove();
              changed = true;
            }
          }
          return changed;
        }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 20:24:49 UTC 2024
    - 22.8K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/SmbCopyUtil.java

            try ( CloseableIterator<SmbResource> it = SmbEnumerationUtil
                    .doEnum(src, "*", SmbConstants.ATTR_DIRECTORY | SmbConstants.ATTR_HIDDEN | SmbConstants.ATTR_SYSTEM, null, null) ) {
                while ( it.hasNext() ) {
                    try ( SmbResource r = it.next() ) {
                        try ( SmbFile ndest = new SmbFile(
                            dest,
                            r.getLocator().getName(),
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Tue Jul 07 10:52:42 UTC 2020
    - 17.1K bytes
    - Viewed (0)
  5. src/test/java/jcifs/tests/AllTests.java

                try {
                    Path configDir = Paths.get(System.getProperty(TestProperties.TEST_CONFIG_DIR));
                    Iterator<Path> it = Files.newDirectoryStream(configDir).iterator();
    
                    while ( it.hasNext() ) {
                        Path config = it.next();
                        loadConfigFile(config, applyMutations, configs);
                    }
                }
                catch ( IOException e ) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Tue Jul 07 10:52:42 UTC 2020
    - 14.4K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/TreeBasedTable.java

                comparator);
    
        return new AbstractIterator<C>() {
          @CheckForNull C lastValue;
    
          @Override
          @CheckForNull
          protected C computeNext() {
            while (merged.hasNext()) {
              C next = merged.next();
              boolean duplicate = lastValue != null && comparator.compare(next, lastValue) == 0;
    
              // Keep looping till we find a non-duplicate value.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  7. 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.2K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/collect/testing/testers/NavigableSetNavigationTester.java

      }
    
      @CollectionSize.Require(SEVERAL)
      public void testDescendingNavigation() {
        List<E> descending = new ArrayList<>();
        for (Iterator<E> i = navigableSet.descendingIterator(); i.hasNext(); ) {
          descending.add(i.next());
        }
        Collections.reverse(descending);
        assertEquals(values, descending);
      }
    
      public void testEmptySubSet() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/AbstractMultimap.java

          return !valueCollection.isEmpty() && get(key).addAll(valueCollection);
        } else {
          Iterator<? extends V> valueItr = values.iterator();
          return valueItr.hasNext() && Iterators.addAll(get(key), valueItr);
        }
      }
    
      @CanIgnoreReturnValue
      @Override
      public boolean putAll(Multimap<? extends K, ? extends V> multimap) {
        boolean changed = false;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 15 21:08:00 UTC 2021
    - 7.1K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/ImmutableList.java

       */
      public static <E> ImmutableList<E> copyOf(Iterator<? extends E> elements) {
        // We special-case for 0 or 1 elements, but going further is madness.
        if (!elements.hasNext()) {
          return of();
        }
        E first = elements.next();
        if (!elements.hasNext()) {
          return of(first);
        } else {
          return new ImmutableList.Builder<E>().add(first).addAll(elements).build();
        }
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 21:21:17 UTC 2024
    - 27.7K bytes
    - Viewed (0)
Back to top