Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 195 for index (0.05 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/Helpers.java

          @Override
          public T get(int index) {
            return data.get(index);
          }
    
          @Override
          public T set(int index, T element) {
            return data.set(index, element);
          }
    
          @Override
          public boolean add(T element) {
            return data.add(element);
          }
    
          @Override
          public void add(int index, T element) {
            data.add(index, element);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/primitives/Doubles.java

              return i - start;
            }
          }
          return -1;
        }
    
        @Override
        public Double set(int index, Double element) {
          checkElementIndex(index, size());
          double 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 29 15:43:06 UTC 2024
    - 27.1K bytes
    - Viewed (0)
  3. guava/src/com/google/common/primitives/Doubles.java

              return i - start;
            }
          }
          return -1;
        }
    
        @Override
        public Double set(int index, Double element) {
          checkElementIndex(index, size());
          double 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 29 15:43:06 UTC 2024
    - 27.3K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/RegularImmutableMap.java

          @CheckForNull @Nullable ImmutableMapEntry<?, V>[] keyTable,
          int mask) {
        if (key == null || keyTable == null) {
          return null;
        }
        int index = Hashing.smear(key.hashCode()) & mask;
        for (ImmutableMapEntry<?, V> entry = keyTable[index];
            entry != null;
            entry = entry.getNextInKeyBucket()) {
          Object candidateKey = entry.getKey();
    
          /*
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue May 28 18:11:09 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/primitives/Longs.java

        }
        boolean negative = string.charAt(0) == '-';
        int index = negative ? 1 : 0;
        if (index == string.length()) {
          return null;
        }
        int digit = AsciiDigits.digit(string.charAt(index++));
        if (digit < 0 || digit >= radix) {
          return null;
        }
        long accum = -digit;
    
        long cap = Long.MIN_VALUE / radix;
    
        while (index < string.length()) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 15 16:12:13 UTC 2024
    - 28.7K bytes
    - Viewed (0)
  6. guava/src/com/google/common/primitives/Longs.java

        }
        boolean negative = string.charAt(0) == '-';
        int index = negative ? 1 : 0;
        if (index == string.length()) {
          return null;
        }
        int digit = AsciiDigits.digit(string.charAt(index++));
        if (digit < 0 || digit >= radix) {
          return null;
        }
        long accum = -digit;
    
        long cap = Long.MIN_VALUE / radix;
    
        while (index < string.length()) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 15 16:12:13 UTC 2024
    - 28.8K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/util/concurrent/CombinedFuture.java

          Callable<V> callable) {
        super(futures, allMustSucceed, false);
        this.task = new CallableInterruptibleTask(callable, listenerExecutor);
        init();
      }
    
      @Override
      void collectOneValue(int index, @CheckForNull Object returnValue) {}
    
      @Override
      void handleAllCompleted() {
        CombinedFutureInterruptibleTask<?> localTask = task;
        if (localTask != null) {
          localTask.execute();
        }
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 01 21:46:34 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  8. guava/src/com/google/common/util/concurrent/CombinedFuture.java

          Callable<V> callable) {
        super(futures, allMustSucceed, false);
        this.task = new CallableInterruptibleTask(callable, listenerExecutor);
        init();
      }
    
      @Override
      void collectOneValue(int index, @CheckForNull Object returnValue) {}
    
      @Override
      void handleAllCompleted() {
        CombinedFutureInterruptibleTask<?> localTask = task;
        if (localTask != null) {
          localTask.execute();
        }
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 01 21:46:34 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  9. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableList.java

      }
    
      public final boolean addAll(int index, Collection<? extends E> newElements) {
        throw new UnsupportedOperationException();
      }
    
      public final E set(int index, E element) {
        throw new UnsupportedOperationException();
      }
    
      public final void add(int index, E element) {
        throw new UnsupportedOperationException();
      }
    
      public final E remove(int index) {
        throw new UnsupportedOperationException();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 08 03:01:02 UTC 2024
    - 11K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/ImmutableSet.java

          int hash = element.hashCode();
          for (int j = Hashing.smear(hash); ; j++) {
            int index = j & mask;
            Object value = table[index];
            if (value == null) {
              // Came to an empty slot. Put the element here.
              elements[uniques++] = element;
              table[index] = element;
              hashCode += hash;
              break;
            } else if (value.equals(element)) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sun Jun 02 13:36:19 UTC 2024
    - 22.5K bytes
    - Viewed (0)
Back to top