Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 31 for Content (0.15 sec)

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

          builder.append(t.value);
        }
        StringBuilder forEachBuilder = new StringBuilder();
        iterable.forEach(t -> forEachBuilder.append(t.value));
        assertTrue(
            "Iterator content was " + builder + " but forEach content was " + forEachBuilder,
            builder.toString().contentEquals(forEachBuilder));
        return builder.toString();
      }
    
      public void testPreOrder() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/RegularImmutableMultiset.java

      final transient ObjectCountHashMap<E> contents;
      private final transient int size;
    
      @LazyInit @CheckForNull private transient ImmutableSet<E> elementSet;
    
      RegularImmutableMultiset(ObjectCountHashMap<E> contents) {
        this.contents = contents;
        long size = 0;
        for (int i = 0; i < contents.size(); i++) {
          size += contents.getValue(i);
        }
        this.size = Ints.saturatedCast(size);
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 4.1K bytes
    - Viewed (0)
  3. .github/workflows/ci.yml

    name: CI
    
    on:
      push:
        branches:
          - master
      pull_request:
        branches:
          - master
    
    permissions:
      contents: read
    
    jobs:
      test:
        permissions:
          actions: write  # for styfle/cancel-workflow-action to cancel/stop running workflows
          contents: read  # for actions/checkout to fetch code
        name: "${{ matrix.root-pom }} on JDK ${{ matrix.java }} on ${{ matrix.os }}"
        strategy:
          matrix:
    Others
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 24 19:33:50 GMT 2024
    - 3.5K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/collect/testing/google/MultisetRemoveTester.java

      @CollectionFeature.Require(SUPPORTS_REMOVE)
      public void testRetainAllIgnoresCount() {
        initThreeCopies();
        List<E> contents = Helpers.copyToList(getMultiset());
        assertFalse(getMultiset().retainAll(Collections.singleton(e0())));
        expectContents(contents);
      }
    
      /**
       * Returns {@link Method} instances for the remove tests that assume multisets support duplicates
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 7K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/JdkBackedImmutableMap.java

       * detected. This implementation may replace the entries in entryArray with its own entry objects
       * (though they will have the same key/value contents), and will take ownership of entryArray.
       */
      static <K, V> ImmutableMap<K, V> create(
          int n, @Nullable Entry<K, V>[] entryArray, boolean throwIfDuplicateKeys) {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 4.8K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/MinimalCollection.java

        return new MinimalCollection<>(Object.class, true, contents);
      }
    
      // TODO: use this
      public static <E extends @Nullable Object> MinimalCollection<E> ofClassAndContents(
          Class<? super @NonNull E> type, E... contents) {
        return new MinimalCollection<>(type, true, contents);
      }
    
      private final E[] contents;
      private final Class<? super @NonNull E> type;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  7. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSet.java

        final ArrayList<E> contents;
    
        public Builder() {
          this.contents = Lists.newArrayList();
        }
    
        Builder(int initialCapacity) {
          this.contents = Lists.newArrayListWithCapacity(initialCapacity);
        }
    
        @CanIgnoreReturnValue
        @Override
        public Builder<E> add(E element) {
          contents.add(checkNotNull(element));
          return this;
        }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 23 18:43:40 GMT 2024
    - 8.3K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/google/MultisetRemoveTester.java

      @CollectionFeature.Require(SUPPORTS_REMOVE)
      public void testRetainAllIgnoresCount() {
        initThreeCopies();
        List<E> contents = Helpers.copyToList(getMultiset());
        assertFalse(getMultiset().retainAll(Collections.singleton(e0())));
        expectContents(contents);
      }
    
      /**
       * Returns {@link Method} instances for the remove tests that assume multisets support duplicates
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 7K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/base/Predicate.java

     * or method references instead of classes, leaving your code easier to migrate in the future.
     *
     * <p>To use a reference of this type (say, named {@code guavaPredicate}) in a context where {@code
     * java.util.function.Predicate} is expected, use the method reference {@code
     * guavaPredicate::apply}. For the other direction, use {@code javaUtilPredicate::test}. A future
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/ArrayListMultimap.java

       *
       * <p>This method will soon be deprecated in favor of {@code
       * MultimapBuilder.hashKeys().arrayListValues().build(multimap)}.
       *
       * @param multimap the multimap whose contents are copied to this multimap
       */
      public static <K extends @Nullable Object, V extends @Nullable Object>
          ArrayListMultimap<K, V> create(Multimap<? extends K, ? extends V> multimap) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 6.9K bytes
    - Viewed (0)
Back to top