Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for hasTest (0.04 sec)

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

      public static <E extends @Nullable Object> HashSet<E> newHashSet(Iterator<? extends E> elements) {
        HashSet<E> set = new HashSet<>();
        Iterators.addAll(set, elements);
        return set;
      }
    
      /**
       * Returns a new hash set using the smallest initial table size that can hold {@code expectedSize}
       * elements without resizing. Note that this is not what {@link HashSet#HashSet(int)} does, but it
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 81.6K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/IteratorsTest.java

          assertEquals("b", cycle.next());
        }
      }
    
      public void testCycleOfTwoWithRemove() {
        Iterable<String> iterable = Lists.newArrayList("a", "b");
        Iterator<String> cycle = Iterators.cycle(iterable);
        assertTrue(cycle.hasNext());
        assertEquals("a", cycle.next());
        assertTrue(cycle.hasNext());
        assertEquals("b", cycle.next());
        assertTrue(cycle.hasNext());
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 54.4K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/Iterators.java

             * the user calls remove().)
             */
            return iterator.hasNext() || iterable.iterator().hasNext();
          }
    
          @Override
          @ParametricNullness
          public T next() {
            if (!iterator.hasNext()) {
              iterator = iterable.iterator();
              if (!iterator.hasNext()) {
                throw new NoSuchElementException();
              }
            }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 50.5K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/IteratorsTest.java

          assertEquals("b", cycle.next());
        }
      }
    
      public void testCycleOfTwoWithRemove() {
        Iterable<String> iterable = Lists.newArrayList("a", "b");
        Iterator<String> cycle = Iterators.cycle(iterable);
        assertTrue(cycle.hasNext());
        assertEquals("a", cycle.next());
        assertTrue(cycle.hasNext());
        assertEquals("b", cycle.next());
        assertTrue(cycle.hasNext());
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 54.4K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/collection/CollectionsUtil.java

        /**
         * Creates and returns a new instance of {@link HashSet}.
         *
         * @param <E> the element type of {@link HashSet}
         * @return a new instance of {@link HashSet}
         * @see HashSet#HashSet()
         */
        public static <E> HashSet<E> newHashSet() {
            return new HashSet<>();
        }
    
        /**
         * Creates and returns a new instance of {@link HashSet}.
         *
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 49.9K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/Multimaps.java

              return new Iterator<V>() {
                int i;
    
                @Override
                public boolean hasNext() {
                  return (i == 0) && map.containsKey(key);
                }
    
                @Override
                @ParametricNullness
                public V next() {
                  if (!hasNext()) {
                    throw new NoSuchElementException();
                  }
                  i++;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 86.6K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/Multimaps.java

              return new Iterator<V>() {
                int i;
    
                @Override
                public boolean hasNext() {
                  return (i == 0) && map.containsKey(key);
                }
    
                @Override
                @ParametricNullness
                public V next() {
                  if (!hasNext()) {
                    throw new NoSuchElementException();
                  }
                  i++;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 86.9K bytes
    - Viewed (0)
  8. okhttp/src/jvmTest/kotlin/okhttp3/internal/cache/DiskLruCacheTest.kt

        set("b", "b1", "b2")
        set("c", "c1", "c2")
        val iterator = cache.snapshots()
        assertThat(iterator.hasNext()).isTrue()
        iterator.next().use {
          assertThat(it.key()).isEqualTo("a")
          it.assertValue(0, "a1")
          it.assertValue(1, "a2")
        }
        assertThat(iterator.hasNext()).isTrue()
        iterator.next().use {
          assertThat(it.key()).isEqualTo("b")
          it.assertValue(0, "b1")
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 75.7K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/ldap/LdapManager.java

            if (logger.isDebugEnabled()) {
                logger.debug("Account Filter: {}", filter);
            }
            final Set<String> subRoleSet = new HashSet<>();
            final Set<String> sAMAccountGroupNameSet = new HashSet<>();
            search(bindDn, filter, new String[] { fessConfig.getLdapMemberofAttribute() }, () -> ldapUser.getEnvironment(), result -> {
                processSearchRoles(result, entryDn -> {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 82K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/helper/ViewHelper.java

        protected Set<Integer> highlightTerminalCharSet = new HashSet<>();
    
        /** Action hook for custom processing */
        protected ActionHook actionHook = new ActionHook();
    
        /** Set of MIME types that should be displayed inline */
        protected final Set<String> inlineMimeTypeSet = new HashSet<>();
    
        /** Cache for facet responses */
        protected Cache<String, FacetResponse> facetCache;
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 52.4K bytes
    - Viewed (0)
Back to top