Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 17 of 17 for combine (0.32 sec)

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

            add(elements.next());
          }
          return this;
        }
    
        @CanIgnoreReturnValue
        @SuppressWarnings("unchecked") // ArrayBasedBuilder stores its elements as Object.
        Builder<E> combine(Builder<E> other) {
          if (hashTable != null) {
            for (int i = 0; i < other.size; ++i) {
              // requireNonNull is safe because the first `size` elements are non-null.
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 22.6K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/ImmutableList.java

        @CanIgnoreReturnValue
        @Override
        public Builder<E> addAll(Iterator<? extends E> elements) {
          super.addAll(elements);
          return this;
        }
    
        @CanIgnoreReturnValue
        Builder<E> combine(Builder<E> other) {
          addAll(other.contents, other.size);
          return this;
        }
    
        /**
         * Returns a newly-created {@code ImmutableList} based on the contents of the {@code Builder}.
         */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 27.1K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/ImmutableMap.java

          this.valueComparator = checkNotNull(valueComparator, "valueComparator");
          return this;
        }
    
        @CanIgnoreReturnValue
        Builder<K, V> combine(Builder<K, V> other) {
          checkNotNull(other);
          ensureCapacity(this.size + other.size);
          System.arraycopy(
              other.alternatingKeysAndValues,
              0,
              this.alternatingKeysAndValues,
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 41.7K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/ImmutableSortedMap.java

          throw new UnsupportedOperationException("Not available on ImmutableSortedMap.Builder");
        }
    
        @CanIgnoreReturnValue
        Builder<K, V> combine(ImmutableSortedMap.Builder<K, V> other) {
          ensureCapacity(size + other.size);
          System.arraycopy(other.keys, 0, this.keys, this.size, other.size);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 53.2K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/ImmutableSortedMultiset.java

        /*
         * We keep an array of elements and counts.  Periodically -- when we need more room in the
         * array, or when we're building, or the like -- we sort, deduplicate, and combine the counts.
         * Negative counts indicate a setCount operation with ~counts[i].
         */
    
        private final Comparator<? super E> comparator;
    
        @VisibleForTesting E[] elements;
        private int[] counts;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 35.7K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/Iterators.java

             */
            I result = requireNonNull(elements[index]);
            elements[index] = null;
            index++;
            return result;
          }
        };
      }
    
      /**
       * Combines two iterators into a single iterator. The returned iterator iterates across the
       * elements in {@code a}, followed by the elements in {@code b}. The source iterators are not
       * polled until necessary.
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Apr 30 18:43:01 GMT 2024
    - 51.1K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/Multimaps.java

       * iterators that don't support remove, passing one to the FilteredEntryMultimap constructor would
       * lead to a multimap whose removal operations would fail. This method combines the predicates to
       * avoid that problem.
       */
      private static <K extends @Nullable Object, V extends @Nullable Object>
          Multimap<K, V> filterFiltered(
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 86.4K bytes
    - Viewed (0)
Back to top