Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 227 for Index (0.08 sec)

  1. guava/src/com/google/common/collect/MinMaxPriorityQueue.java

          }
          queue[index] = x;
          return index;
        }
    
        /**
         * Returns the index of minimum value between {@code index} and {@code index + len}, or {@code
         * -1} if {@code index} is greater than {@code size}.
         */
        int findMin(int index, int len) {
          if (index >= size) {
            return -1;
          }
          checkState(index > 0);
          int limit = Math.min(index, size - len) + len;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 34K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/RegularImmutableSortedMultiset.java

        this.offset = offset;
        this.length = length;
      }
    
      private int getCount(int index) {
        return (int) (cumulativeCounts[offset + index + 1] - cumulativeCounts[offset + index]);
      }
    
      @Override
      Entry<E> getEntry(int index) {
        return Multisets.immutableEntry(elementSet.asList().get(index), getCount(index));
      }
    
      @Override
      @CheckForNull
      public Entry<E> firstEntry() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/DenseImmutableTable.java

            private int index = -1;
            private final int maxIndex = keyToIndex().size();
    
            @Override
            @CheckForNull
            protected Entry<K, V> computeNext() {
              for (index++; index < maxIndex; index++) {
                V value = getValue(index);
                if (value != null) {
                  return Maps.immutableEntry(getKey(index), value);
                }
              }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 10K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/ArrayTable.java

        public V get(@CheckForNull Object key) {
          Integer index = keyIndex.get(key);
          if (index == null) {
            return null;
          } else {
            return getValue(index);
          }
        }
    
        @Override
        @CheckForNull
        public V put(K key, @ParametricNullness V value) {
          Integer index = keyIndex.get(key);
          if (index == null) {
            throw new IllegalArgumentException(
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 26.3K bytes
    - Viewed (0)
  5. guava/src/com/google/common/util/concurrent/AtomicDoubleArray.java

       * Atomically adds the given value to the element at index {@code i}.
       *
       * @param i the index
       * @param delta the value to add
       * @return the previous value
       */
      @CanIgnoreReturnValue
      public final double getAndAdd(int i, double delta) {
        return getAndAccumulate(i, delta, Double::sum);
      }
    
      /**
       * Atomically adds the given value to the element at index {@code i}.
       *
       * @param i the index
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Apr 04 09:45:04 UTC 2023
    - 10.2K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/Lists.java

        }
    
        private int reverseIndex(int index) {
          int size = size();
          checkElementIndex(index, size);
          return (size - 1) - index;
        }
    
        private int reversePosition(int index) {
          int size = size();
          checkPositionIndex(index, size);
          return size - index;
        }
    
        @Override
        public void add(int index, @ParametricNullness T element) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 29 16:48:36 UTC 2024
    - 41.5K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/math/Quantiles.java

        /**
         * Specifies a single quantile index to be calculated, i.e. the k in the kth q-quantile.
         *
         * @param index the quantile index, which must be in the inclusive range [0, q] for q-quantiles
         */
        public ScaleAndIndex index(int index) {
          return new ScaleAndIndex(scale, index);
        }
    
        /**
         * Specifies multiple quantile indexes to be calculated, each index being the k in the kth
         * q-quantile.
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 12 17:02:53 UTC 2023
    - 29.9K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/SortedLists.java

    final class SortedLists {
      private SortedLists() {}
    
      /**
       * A specification for which index to return if the list contains at least one element that
       * compares as equal to the key.
       */
      enum KeyPresentBehavior {
        /**
         * Return the index of any list element that compares as equal to the key. No guarantees are
         * made as to which index is returned, if more than one element compares as equal to the key.
         */
        ANY_PRESENT {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  9. guava/src/com/google/common/util/concurrent/Striped.java

      /**
       * Returns the stripe at the specified index. Valid indexes are 0, inclusively, to {@code size()},
       * exclusively.
       *
       * @param index the index of the stripe to return; must be in {@code [0...size())}
       * @return the stripe at the specified index
       */
      public abstract L getAt(int index);
    
      /**
       * Returns the index to which the given key is mapped, so that getAt(indexFor(key)) == get(key).
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 10 20:55:18 UTC 2023
    - 20.3K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/SparseImmutableTable.java

        return cellRowIndices.length;
      }
    
      @Override
      Cell<R, C, V> getCell(int index) {
        int rowIndex = cellRowIndices[index];
        Entry<R, ImmutableMap<C, V>> rowEntry = rowMap.entrySet().asList().get(rowIndex);
        ImmutableMap<C, V> row = rowEntry.getValue();
        int columnIndex = cellColumnInRowIndices[index];
        Entry<C, V> colEntry = row.entrySet().asList().get(columnIndex);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 5.6K bytes
    - Viewed (0)
Back to top