Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 65 for index2 (0.13 sec)

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

              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;
        }
    
        abstract S createSplit(F from, long i);
    
        @Override
        @CheckForNull
        public S trySplit() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 37.4K bytes
    - Viewed (0)
  2. cmd/erasure-healing-common.go

    			for index, e := range etags {
    				if partsMetadata[index].IsValid() && e == etag {
    					onlineDisks[index] = disks[index]
    				} else {
    					onlineDisks[index] = nil
    				}
    			}
    			return onlineDisks, modTime, etag
    		}
    	}
    
    	// Create a new online disks slice, which have common uuid.
    	for index, t := range modTimes {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 22:10:24 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/Streams.java

        final F fromSpliterator;
        long index;
    
        MapWithIndexSpliterator(F fromSpliterator, long index) {
          this.fromSpliterator = fromSpliterator;
          this.index = index;
        }
    
        abstract S createSplit(F from, long i);
    
        @Override
        @CheckForNull
        public S trySplit() {
          Spliterator<?> splitOrNull = fromSpliterator.trySplit();
          if (splitOrNull == null) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 36.8K bytes
    - Viewed (0)
  4. cmd/erasure-object.go

    			fi := metadata[index]
    			// Assign index when index is initialized
    			if fi.Erasure.Index == 0 {
    				fi.Erasure.Index = index + 1
    			}
    
    			if !fi.IsValid() {
    				return errFileCorrupt
    			}
    			resp, err := disks[index].RenameData(ctx, srcBucket, srcEntry, fi, dstBucket, dstEntry, RenameOptions{})
    			if err != nil {
    				return err
    			}
    			diskVersions[index] = resp.Sign
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 22:10:24 UTC 2024
    - 78.8K bytes
    - Viewed (0)
  5. android/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 = min(index, size - len) + len;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 34.1K bytes
    - Viewed (0)
  6. 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 = min(index, size - len) + len;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 34.1K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/ImmutableMultisetTest.java

                        List<String> order = new ArrayList<>();
                        for (String s : insertionOrder) {
                          int index = order.indexOf(s);
                          if (index == -1) {
                            order.add(s);
                          } else {
                            order.add(index, s);
                          }
                        }
                        return order;
                      }
                    })
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 24.9K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/testers/MapReplaceAllTester.java

            .replaceAll(
                (K k, V v) -> {
                  int index = keys().asList().indexOf(k);
                  return values().asList().get(index + 1);
                });
        List<Entry<K, V>> orderedEntries = getOrderedElements();
        int index = 0;
        for (K key : getMap().keySet()) {
          assertEquals(orderedEntries.get(index).getKey(), key);
          index++;
        }
      }
    
      @MapFeature.Require(absent = SUPPORTS_PUT)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:51:04 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  9. 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: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 26.3K bytes
    - Viewed (0)
  10. 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: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 43.1K bytes
    - Viewed (0)
Back to top