Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 114 for index (0.1 sec)

  1. android/guava/src/com/google/common/primitives/Chars.java

            }
          }
          return -1;
        }
    
        @Override
        public Character set(int index, Character element) {
          checkElementIndex(index, size());
          char oldValue = array[start + index];
          // checkNotNull for GWT (do not optimize)
          array[start + index] = checkNotNull(element);
          return oldValue;
        }
    
        @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 15 16:12:13 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/LinkedListMultimap.java

        int expectedModCount = modCount;
    
        NodeIterator(int index) {
          int size = size();
          checkPositionIndex(index, size);
          if (index >= (size / 2)) {
            previous = tail;
            nextIndex = size;
            while (index++ < size) {
              previous();
            }
          } else {
            next = head;
            while (index-- > 0) {
              next();
            }
          }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Oct 13 14:11:58 UTC 2023
    - 27.5K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/ImmutableMultiset.java

      }
    
      abstract Entry<E> getEntry(int index);
    
      @WeakOuter
      private final class EntrySet extends IndexedImmutableSet<Entry<E>> {
        @Override
        boolean isPartialView() {
          return ImmutableMultiset.this.isPartialView();
        }
    
        @Override
        Entry<E> get(int index) {
          return getEntry(index);
        }
    
        @Override
        public int size() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sun Jun 02 13:36:19 UTC 2024
    - 22.5K bytes
    - Viewed (0)
  4. guava/src/com/google/common/base/Joiner.java

            return rest.length + 2;
          }
    
          @Override
          @CheckForNull
          public Object get(int index) {
            switch (index) {
              case 0:
                return first;
              case 1:
                return second;
              default:
                return rest[index - 2];
            }
          }
        };
      }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Dec 15 19:31:54 UTC 2023
    - 18.6K bytes
    - Viewed (0)
  5. guava/src/com/google/common/primitives/UnsignedBytes.java

              if (lw != rw) {
                if (BIG_ENDIAN) {
                  return UnsignedLongs.compare(lw, rw);
                }
    
                /*
                 * We want to compare only the first index where left[index] != right[index]. This
                 * corresponds to the least significant nonzero byte in lw ^ rw, since lw and rw are
                 * little-endian. Long.numberOfTrailingZeros(diff) tells us the least significant
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Jun 07 22:25:23 UTC 2024
    - 18.3K bytes
    - Viewed (0)
  6. 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)
  7. android/guava/src/com/google/common/primitives/Shorts.java

              return i - start;
            }
          }
          return -1;
        }
    
        @Override
        public Short set(int index, Short element) {
          checkElementIndex(index, size());
          short oldValue = array[start + index];
          // checkNotNull for GWT (do not optimize)
          array[start + index] = checkNotNull(element);
          return oldValue;
        }
    
        @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 15 16:12:13 UTC 2024
    - 25.1K bytes
    - Viewed (0)
  8. guava/src/com/google/common/primitives/Shorts.java

              return i - start;
            }
          }
          return -1;
        }
    
        @Override
        public Short set(int index, Short element) {
          checkElementIndex(index, size());
          short oldValue = array[start + index];
          // checkNotNull for GWT (do not optimize)
          array[start + index] = checkNotNull(element);
          return oldValue;
        }
    
        @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 15 16:12:13 UTC 2024
    - 25.1K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/Streams.java

      }
    
      private abstract static class MapWithIndexSpliterator<
              F extends Spliterator<?>,
              R extends @Nullable Object,
              S extends MapWithIndexSpliterator<F, R, S>>
          implements Spliterator<R> {
        final F fromSpliterator;
        long index;
    
        MapWithIndexSpliterator(F fromSpliterator, long index) {
          this.fromSpliterator = fromSpliterator;
          this.index = index;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 36.5K bytes
    - Viewed (0)
  10. 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)
Back to top