Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 72 for index (0.29 sec)

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

        ImmutableSet<E> result = elementSet;
        return (result == null) ? elementSet = new ElementSet<>(entries, this) : result;
      }
    
      @Override
      Entry<E> getEntry(int index) {
        return entries.get(index);
      }
    
      @Override
      boolean isPartialView() {
        return false;
      }
    
      @Override
      public int size() {
        return Ints.saturatedCast(size);
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/AbstractContainerTester.java

        expectContents(expected);
      }
    
      protected final void expectAdded(int index, E... elements) {
        expectAdded(index, Arrays.asList(elements));
      }
    
      protected final void expectAdded(int index, Collection<E> elements) {
        List<E> expected = Helpers.copyToList(getSampleElements());
        expected.addAll(index, elements);
        expectContents(expected);
      }
    
      /*
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 21 16:49:06 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/util/concurrent/CollectionFuture.java

          values.add(null);
        }
    
        this.values = values;
      }
    
      @Override
      final void collectOneValue(int index, @ParametricNullness V returnValue) {
        List<@Nullable Present<V>> localValues = values;
        if (localValues != null) {
          localValues.set(index, new Present<>(returnValue));
        }
      }
    
      @Override
      final void handleAllCompleted() {
        List<@Nullable Present<V>> localValues = values;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 01 21:46:34 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  4. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/RegularImmutableMultiset.java

        throw new AssertionError();
      }
    
      @Override
      public ImmutableSet<E> elementSet() {
        throw new AssertionError();
      }
    
      @Override
      Entry<E> getEntry(int index) {
        throw new AssertionError();
      }
    
      @Override
      boolean isPartialView() {
        throw new AssertionError();
      }
    
      @Override
      public int size() {
        throw new AssertionError();
      }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jan 23 18:43:40 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/ObjectArrays.java

      // We do this instead of Preconditions.checkNotNull to save boxing and array
      // creation cost.
      @CanIgnoreReturnValue
      static Object checkElementNotNull(Object element, int index) {
        if (element == null) {
          throw new NullPointerException("at index " + index);
        }
        return element;
      }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Jun 12 15:59:22 UTC 2023
    - 9K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/ObjectArrays.java

      // creation cost.
      @CanIgnoreReturnValue
      static Object checkElementNotNull(@CheckForNull Object element, int index) {
        if (element == null) {
          throw new NullPointerException("at index " + index);
        }
        return element;
      }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Jun 12 15:59:22 UTC 2023
    - 9K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/escape/ArrayBasedEscaperMapTest.java

        assertEquals(65536, replacementArray.length);
        // The final element should always be non-null.
        assertNotNull(replacementArray[replacementArray.length - 1]);
        // Exhaustively check all mappings (an int index avoids wrapping).
        for (int n = 0; n < replacementArray.length; ++n) {
          char c = (char) n;
          if (replacementArray[n] != null) {
            assertEquals(map.get(c), new String(replacementArray[n]));
          } else {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Oct 10 19:45:10 UTC 2022
    - 2.5K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/testers/AbstractListTester.java

          E expected = expectedList.get(i);
          E actual = getList().get(i);
          if (expected != actual && (expected == null || !expected.equals(actual))) {
            fail("mismatch at index " + i + ": " + reportContext(expectedList));
          }
        }
      }
    
      /**
       * Used to delay string formatting until actually required, as it otherwise shows up in the test
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 21 16:49:06 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/RegularImmutableSet.java

      private final transient int hashCode;
      // the same values as `elements` in hashed positions (plus nulls)
      @VisibleForTesting final transient @Nullable Object[] table;
      // 'and' with an int to get a valid table index.
      private final transient int mask;
    
      RegularImmutableSet(Object[] elements, int hashCode, @Nullable Object[] table, int mask) {
        this.elements = elements;
        this.hashCode = hashCode;
        this.table = table;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  10. guava/src/com/google/common/util/concurrent/ListenerCallQueue.java

       *
       * <p>Note: this method is idempotent and safe to call from any thread
       */
      public void dispatch() {
        // iterate by index to avoid concurrent modification exceptions
        for (int i = 0; i < listeners.size(); i++) {
          listeners.get(i).dispatch();
        }
      }
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Dec 13 19:45:20 UTC 2023
    - 8.2K bytes
    - Viewed (0)
Back to top