Search Options

Results per page
Sort
Preferred Languages
Advance

Results 411 - 420 of 2,181 for Next (0.07 sec)

  1. src/test/java/org/codelibs/core/collection/EnumerationIteratorTest.java

            vector.add("a");
            final EnumerationIterator<String> itr = new EnumerationIterator<String>(vector.elements());
            assertThat(itr.hasNext(), is(true));
            assertThat(itr.next(), is("a"));
            assertThat(itr.hasNext(), is(not(true)));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testRemove() throws Exception {
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  2. impl/maven-core/src/main/java/org/apache/maven/RepositoryUtils.java

            if (r1.size() != r2.size()) {
                return false;
            }
    
            for (Iterator<RemoteRepository> it1 = r1.iterator(), it2 = r2.iterator(); it1.hasNext(); ) {
                if (!repositoryEquals(it1.next(), it2.next())) {
                    return false;
                }
            }
    
            return true;
        }
    
        public static int repositoriesHashCode(List<RemoteRepository> repositories) {
            int result = 17;
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 16K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/NullnessCasts.java

       * its runtime check.
       *
       * <p>An example use case for this method is in implementing an {@code Iterator<T>} whose {@code
       * next} field is lazily initialized. The type of that field would be {@code @Nullable T}, and the
       * code would be responsible for populating a "real" {@code T} (which might still be the value
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 10 20:36:34 UTC 2022
    - 3.5K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/NullnessCasts.java

       * its runtime check.
       *
       * <p>An example use case for this method is in implementing an {@code Iterator<T>} whose {@code
       * next} field is lazily initialized. The type of that field would be {@code @Nullable T}, and the
       * code would be responsible for populating a "real" {@code T} (which might still be the value
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 10 20:36:34 UTC 2022
    - 3.5K bytes
    - Viewed (0)
  5. cmd/erasure-utils.go

    		if offset >= int64(len(block)) {
    			// Decrement offset.
    			offset -= int64(len(block))
    			continue
    		}
    
    		// Skip until offset.
    		block = block[offset:]
    
    		// Reset the offset for next iteration to read everything
    		// from subsequent blocks.
    		offset = 0
    
    		// We have written all the blocks, write the last remaining block.
    		if write < int64(len(block)) {
    			n, err := dst.Write(block[:write])
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jan 31 02:11:45 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  6. internal/cachevalue/cache_test.go

    		func(ctx context.Context) (time.Time, error) {
    			return time.Now(), nil
    		},
    	)
    
    	b.ReportAllocs()
    	b.ResetTimer()
    
    	b.RunParallel(func(pb *testing.PB) {
    		for pb.Next() {
    			cache.Get()
    		}
    	})
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu May 09 00:51:34 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionRemoveIfTester.java

            ConcurrentModificationException.class,
            () -> {
              Iterator<E> iterator = collection.iterator();
              assertTrue(collection.removeIf(Predicate.isEqual(samples.e0())));
              iterator.next();
            });
      }
    
      @CollectionFeature.Require(absent = SUPPORTS_REMOVE)
      @CollectionSize.Require(ZERO)
      public void testRemoveIf_unsupportedEmptyCollection() {
        try {
          assertFalse(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:51:04 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/AbstractTester.java

       * TestCase#assertNull(String, Object)}.
       *
       * <p>The {@link TestCase} version (which is from JUnit 3) produces a failure message that does
       * not include the value of the object.
       *
       * @since NEXT
       */
      public static void assertNull(String message, Object object) {
        assertEquals(message, null, object);
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 28 21:41:47 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/collect/testing/AbstractTester.java

       * TestCase#assertNull(String, Object)}.
       *
       * <p>The {@link TestCase} version (which is from JUnit 3) produces a failure message that does
       * not include the value of the object.
       *
       * @since NEXT
       */
      public static void assertNull(String message, Object object) {
        assertEquals(message, null, object);
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 28 21:41:47 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/primitives/ImmutableIntArray.java

        }
        return builder().addAll(values).build();
      }
    
      /**
       * Returns an immutable array containing all the values from {@code stream}, in order.
       *
       * @since NEXT (but since 22.0 in the JRE flavor)
       */
      @SuppressWarnings("Java7ApiChecker")
      @IgnoreJRERequirement // Users will use this only if they're already using streams.
      public static ImmutableIntArray copyOf(IntStream stream) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 22.2K bytes
    - Viewed (0)
Back to top