Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 27 for volume (0.2 sec)

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

       * <a href="https://github.com/google/guava/wiki/CollectionUtilitiesExplained#comparators">{@code
       * Comparators}</a>.
       *
       * @param a first value to compare, returned if less than or equal to b.
       * @param b second value to compare.
       * @throws ClassCastException if the parameters are not <i>mutually comparable</i>.
       * @since 30.0
       */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 10.2K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/ImmutableSetMultimap.java

          return Platform.preservesInsertionOrderOnAddsSet();
        }
    
        /** Adds a key-value mapping to the built multimap if it is not already present. */
        @CanIgnoreReturnValue
        @Override
        public Builder<K, V> put(K key, V value) {
          super.put(key, value);
          return this;
        }
    
        /**
         * Adds an entry to the built multimap if it is not already present.
         *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 23.6K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/ImmutableSortedMap.java

                Entry<K, V> entry = requireNonNull(entryArray[i]);
                Object key = entry.getKey();
                Object value = entry.getValue();
                checkEntryNotNull(key, value);
                keys[i] = key;
                values[i] = value;
              }
            } else {
              // Need to sort and check for nulls and dupes.
    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)
  4. android/guava/src/com/google/common/collect/Iterables.java

       * Returns the element at the specified position in an iterable or a default value otherwise.
       *
       * <p><b>{@code Stream} equivalent:</b> {@code
       * stream.skip(position).findFirst().orElse(defaultValue)} (returns the default value if the index
       * is out of bounds)
       *
       * @param position position of the element to return
       * @param defaultValue the default value to return if {@code position} is greater than or equal to
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 24 19:38:27 GMT 2024
    - 42.8K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/Multisets.java

      /**
       * Returns the expected number of distinct elements given the specified elements. The number of
       * distinct elements is only computed if {@code elements} is an instance of {@code Multiset};
       * otherwise the default value of 11 is returned.
       */
      static int inferDistinctElements(Iterable<?> elements) {
        if (elements instanceof Multiset) {
          return ((Multiset<?>) elements).elementSet().size();
        }
    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)
  6. android/guava/src/com/google/common/util/concurrent/AbstractFuture.java

       * acquire other locks, risking deadlocks.
       *
       * @param value the value to be used as the result
       * @return true if the attempt was accepted, completing the {@code Future}
       */
      @CanIgnoreReturnValue
      protected boolean set(@ParametricNullness V value) {
        Object valueToSet = value == null ? NULL : value;
        if (ATOMIC_HELPER.casValue(this, null, valueToSet)) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 22 21:17:24 GMT 2024
    - 63K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/ImmutableMap.java

        /**
         * Associates {@code key} with {@code value} in the built map. If the same key is put more than
         * once, {@link #buildOrThrow} will fail, while {@link #buildKeepingLast} will keep the last
         * value put for that key.
         */
        @CanIgnoreReturnValue
        public Builder<K, V> put(K key, V value) {
          ensureCapacity(size + 1);
          checkEntryNotNull(key, value);
          alternatingKeysAndValues[2 * size] = key;
    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)
  8. android/guava/src/com/google/common/collect/ImmutableRangeMap.java

        return (ImmutableRangeMap<K, V>) EMPTY;
      }
    
      /** Returns an immutable range map mapping a single range to a single value. */
      public static <K extends Comparable<?>, V> ImmutableRangeMap<K, V> of(Range<K> range, V value) {
        return new ImmutableRangeMap<>(ImmutableList.of(range), ImmutableList.of(value));
      }
    
      @SuppressWarnings("unchecked")
      public static <K extends Comparable<?>, V> ImmutableRangeMap<K, V> copyOf(
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 14.5K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/ImmutableRangeSet.java

      @CheckForNull
      public Range<C> rangeContaining(C value) {
        int index =
            SortedLists.binarySearch(
                ranges,
                Range::lowerBound,
                Cut.belowValue(value),
                Ordering.natural(),
                ANY_PRESENT,
                NEXT_LOWER);
        if (index != -1) {
          Range<C> range = ranges.get(index);
          return range.contains(value) ? range : null;
        }
        return null;
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 27.2K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/ImmutableTable.java

      /**
       * Verifies that {@code rowKey}, {@code columnKey} and {@code value} are non-null, and returns a
       * new entry with those values.
       */
      static <R, C, V> Cell<R, C, V> cellOf(R rowKey, C columnKey, V value) {
        return Tables.immutableCell(
            checkNotNull(rowKey, "rowKey"),
            checkNotNull(columnKey, "columnKey"),
            checkNotNull(value, "value"));
      }
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 17.6K bytes
    - Viewed (0)
Back to top