Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 54 for hasNet (0.15 sec)

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

      }
    
      public void testNewHashSetEmpty() {
        HashSet<Integer> set = Sets.newHashSet();
        verifySetContents(set, EMPTY_COLLECTION);
      }
    
      public void testNewHashSetVarArgs() {
        HashSet<Integer> set = Sets.newHashSet(0, 1, 1);
        verifySetContents(set, Arrays.asList(0, 1));
      }
    
      public void testNewHashSetFromCollection() {
        HashSet<Integer> set = Sets.newHashSet(SOME_COLLECTION);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 17 15:27:58 UTC 2024
    - 49.2K 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: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 03 13:01:51 UTC 2024
    - 55.7K 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: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 03 14:46:32 UTC 2024
    - 50.2K bytes
    - Viewed (0)
  4. 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: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 03 14:46:32 UTC 2024
    - 50.2K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/collection/CollectionsUtil.java

        }
    
        /**
         * {@link HashSet}の新しいインスタンスを作成して返します。
         *
         * @param <E>
         *            {@link HashSet}の要素型
         * @return {@link HashSet}の新しいインスタンス
         * @see HashSet#HashSet()
         */
        public static <E> HashSet<E> newHashSet() {
            return new HashSet<>();
        }
    
        /**
         * {@link HashSet}の新しいインスタンスを作成して返します。
         *
         * @param <E>
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 53.9K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/Sets.java

       * use the {@code HashSet} constructor directly, taking advantage of <a
       * href="http://goo.gl/iz2Wi">"diamond" syntax</a>.
       */
      public static <E extends @Nullable Object> HashSet<E> newHashSet() {
        return new HashSet<>();
      }
    
      /**
       * Creates a <i>mutable</i> {@code HashSet} instance initially containing the given elements.
       *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sun Jun 02 13:36:19 UTC 2024
    - 77.3K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/Sets.java

       * use the {@code HashSet} constructor directly, taking advantage of <a
       * href="http://goo.gl/iz2Wi">"diamond" syntax</a>.
       */
      public static <E extends @Nullable Object> HashSet<E> newHashSet() {
        return new HashSet<>();
      }
    
      /**
       * Creates a <i>mutable</i> {@code HashSet} instance initially containing the given elements.
       *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 78.8K bytes
    - Viewed (0)
  8. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultModelValidator.java

                } finally {
                    stk.pop();
                }
            }
        }
    
        private final Set<String> validCoordinateIds = new HashSet<>();
    
        private final Set<String> validProfileIds = new HashSet<>();
    
        private final ModelVersionProcessor versionProcessor;
    
        @Inject
        public DefaultModelValidator(ModelVersionProcessor versionProcessor) {
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Mon Jun 10 11:04:53 UTC 2024
    - 73.9K bytes
    - Viewed (0)
  9. src/runtime/map.go

    		msanread(key, t.Key.Size_)
    	}
    	if asanenabled {
    		asanread(key, t.Key.Size_)
    	}
    	if h.flags&hashWriting != 0 {
    		fatal("concurrent map writes")
    	}
    	hash := t.Hasher(key, uintptr(h.hash0))
    
    	// Set hashWriting after calling t.hasher, since t.hasher may panic,
    	// in which case we have not actually done a write.
    	h.flags ^= hashWriting
    
    	if h.buckets == nil {
    		h.buckets = newobject(t.Bucket) // newarray(t.Bucket, 1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 57.6K bytes
    - Viewed (0)
  10. maven-model-builder/src/main/java/org/apache/maven/model/validation/DefaultModelValidator.java

                } finally {
                    stk.pop();
                }
            }
        }
    
        private final Set<String> validCoordinateIds = new HashSet<>();
    
        private final Set<String> validProfileIds = new HashSet<>();
    
        private final ModelVersionProcessor versionProcessor;
    
        @Inject
        public DefaultModelValidator(ModelVersionProcessor versionProcessor) {
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Sat May 18 14:09:22 UTC 2024
    - 76K bytes
    - Viewed (0)
Back to top