Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for value (0.18 sec)

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

       *
       * @param a first value to compare, returned if greater 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
       */
      public static <T extends Comparable<? super T>> T max(T a, T b) {
        return (a.compareTo(b) >= 0) ? a : b;
      }
    
      /**
    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

       * over keys in the order they were first encountered in the input, and the values for each key
       * are iterated in the order they were encountered. If two values for the same key are {@linkplain
       * Object#equals equal}, the first value encountered is used.
       *
       * @throws NullPointerException if any key, value, or entry is null
       * @since 19.0
       */
      public static <K, V> ImmutableSetMultimap<K, V> copyOf(
    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

         * comparator (which might be the keys' natural order), are not allowed, and will cause {@link
         * #build} to fail.
         */
        @CanIgnoreReturnValue
        @Override
        public Builder<K, V> put(K key, V value) {
          ensureCapacity(size + 1);
          checkEntryNotNull(key, value);
          keys[size] = key;
          values[size] = value;
          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)
  4. android/guava/src/com/google/common/collect/ImmutableMap.java

        }
    
        static final class DuplicateKey {
          private final Object key;
          private final Object value1;
          private final Object value2;
    
          DuplicateKey(Object key, Object value1, Object value2) {
            this.key = key;
            this.value1 = value1;
            this.value2 = value2;
          }
    
          IllegalArgumentException exception() {
            return new IllegalArgumentException(
    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)
  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/collect/ImmutableRangeMap.java

        }
      }
    
      private final transient ImmutableList<Range<K>> ranges;
      private final transient ImmutableList<V> values;
    
      ImmutableRangeMap(ImmutableList<Range<K>> ranges, ImmutableList<V> values) {
        this.ranges = ranges;
        this.values = values;
      }
    
      @Override
      @CheckForNull
      public V get(K key) {
        int index =
            SortedLists.binarySearch(
                ranges,
    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)
  7. 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)
  8. 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)
  9. android/guava/src/com/google/common/collect/ImmutableBiMap.java

          super(size);
        }
    
        /**
         * Associates {@code key} with {@code value} in the built bimap. Duplicate keys or values are
         * not allowed, and will cause {@link #build} to fail.
         */
        @CanIgnoreReturnValue
        @Override
        public Builder<K, V> put(K key, V value) {
          super.put(key, value);
          return this;
        }
    
        /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 22.4K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/Multimaps.java

       * a value in the resulting multimap, yielding a multimap with the same size as the input
       * iterator. The key used to store that value in the multimap will be the result of calling the
       * function on that value. The resulting multimap is created as an immutable snapshot. In the
       * returned multimap, keys appear in the order they are first encountered, and the values
    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