Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 127 for get$index (0.5 sec)

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

                  return values().asList().get(index + 1);
                });
        List<Entry<K, V>> expectedEntries = new ArrayList<>();
        for (Entry<K, V> entry : getSampleEntries()) {
          int index = keys().asList().indexOf(entry.getKey());
          expectedEntries.add(Helpers.mapEntry(entry.getKey(), values().asList().get(index + 1)));
        }
        expectContents(expectedEntries);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:51:04 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/helper/IndexingHelperTest.java

            indexingHelper.deleteDocumentsByDocId(client, docList);
            assertEquals("fess.update", resultMap.get("index"));
            assertEquals(0, ((List<String>) resultMap.get("ids")).size());
    
            docList.add("001");
            indexingHelper.deleteDocumentsByDocId(client, docList);
            assertEquals("fess.update", resultMap.get("index"));
            assertEquals(1, ((List<String>) resultMap.get("ids")).size());
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Wed Jul 24 08:54:24 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/ImmutableRangeSet.java

            lowerBound = (index == 0) ? Cut.<C>belowAll() : ranges.get(index - 1).upperBound;
          } else {
            lowerBound = ranges.get(index).upperBound;
          }
    
          Cut<C> upperBound;
          if (positiveBoundedAbove && index == size - 1) {
            upperBound = Cut.<C>aboveAll();
          } else {
            upperBound = ranges.get(index + (positiveBoundedBelow ? 0 : 1)).lowerBound;
          }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 27K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/ImmutableRangeMap.java

                KeyPresentBehavior.ANY_PRESENT,
                KeyAbsentBehavior.NEXT_LOWER);
        if (index == -1) {
          return null;
        } else {
          Range<K> range = ranges.get(index);
          return range.contains(key) ? values.get(index) : null;
        }
      }
    
      @Override
      @CheckForNull
      public Entry<Range<K>, V> getEntry(K key) {
        int index =
            SortedLists.binarySearch(
                ranges,
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  5. android/guava-tests/benchmark/com/google/common/collect/IteratorBenchmark.java

          for (int index = 0; index < size; index++) {
            sum += arrayList.get(index).hashCode();
          }
        }
        return sum;
      }
    
      @Benchmark
      int arrayListIndexedLength(int reps) {
        int sum = 0;
        for (int i = 0; i < reps; i++) {
          for (int index = 0; index < arrayList.size(); index++) {
            sum += arrayList.get(index).hashCode();
          }
        }
        return sum;
      }
    
      @Benchmark
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 3.4K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/RegularImmutableSortedSet.java

      public E lower(E element) {
        int index = headIndex(element, false) - 1;
        return (index == -1) ? null : elements.get(index);
      }
    
      @Override
      @CheckForNull
      public E floor(E element) {
        int index = headIndex(element, true) - 1;
        return (index == -1) ? null : elements.get(index);
      }
    
      @Override
      @CheckForNull
      public E ceiling(E element) {
        int index = tailIndex(element, true);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  7. api/maven-api-model/src/main/java/org/apache/maven/api/model/InputLocation.java

                for (int index : indices) {
                    InputLocation location;
                    if (index < 0) {
                        location = sourceLocations.get(~index);
                    } else {
                        location = targetLocations.get(index);
                    }
                    locations.put(locations.size(), location);
                }
            }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Thu Aug 15 13:24:49 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/testers/ListSetTester.java

      private void doTestSet(E newValue) {
        int index = aValidIndex();
        E initialValue = getList().get(index);
        assertEquals(
            "set(i, x) should return the old element at position i.",
            initialValue,
            getList().set(index, newValue));
        assertEquals("After set(i, x), get(i) should return x", newValue, getList().get(index));
        assertEquals("set() should not change the size of a list.", getNumElements(), getList().size());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/collect/testing/testers/ListSetTester.java

      private void doTestSet(E newValue) {
        int index = aValidIndex();
        E initialValue = getList().get(index);
        assertEquals(
            "set(i, x) should return the old element at position i.",
            initialValue,
            getList().set(index, newValue));
        assertEquals("After set(i, x), get(i) should return x", newValue, getList().get(index));
        assertEquals("set() should not change the size of a list.", getNumElements(), getList().size());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  10. guava-tests/benchmark/com/google/common/collect/IteratorBenchmark.java

          for (int index = 0; index < size; index++) {
            sum += arrayList.get(index).hashCode();
          }
        }
        return sum;
      }
    
      @Benchmark
      int arrayListIndexedLength(int reps) {
        int sum = 0;
        for (int i = 0; i < reps; i++) {
          for (int index = 0; index < arrayList.size(); index++) {
            sum += arrayList.get(index).hashCode();
          }
        }
        return sum;
      }
    
      @Benchmark
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 4.1K bytes
    - Viewed (0)
Back to top