Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 137 for index (0.09 sec)

  1. 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/hash/BloomFilterStrategies.java

       * from the implementation in MURMUR128_MITZ_32 because we're avoiding the multiplication in the
       * loop and doing a (much simpler) += hash2. We're also changing the index to a positive number by
       * AND'ing with Long.MAX_VALUE instead of flipping the bits.
       */
      MURMUR128_MITZ_64() {
        @Override
        public <T extends @Nullable Object> boolean put(
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Oct 10 19:45:10 UTC 2022
    - 10.7K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java

        // Our call site for get() should be in the trace.
        int index = findStackFrame(e, getClass().getName(), "getExpectingExecutionException");
    
        assertThat(index).isNotEqualTo(0);
    
        // Above our method should be the call to get(). Don't assert on the class
        // because it could be some superclass.
        assertThat(e.getStackTrace()[index - 1].getMethodName()).isEqualTo("get");
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 46.7K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/ImmutableMultimap.java

        }
    
        @Override
        public int size() {
          return ImmutableMultimap.this.size();
        }
    
        @Override
        Multiset.Entry<K> getEntry(int index) {
          Map.Entry<K, ? extends Collection<V>> entry = map.entrySet().asList().get(index);
          return Multisets.immutableEntry(entry.getKey(), entry.getValue().size());
        }
    
        @Override
        boolean isPartialView() {
          return true;
        }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 25.6K bytes
    - Viewed (0)
  5. android/guava-testlib/test/com/google/common/testing/EqualsTesterTest.java

        EqualsTester tester = new EqualsTester();
        try {
          tester.addEqualityGroup(1, null, 3);
          fail();
        } catch (NullPointerException e) {
          assertErrorMessage(e, "at index 1");
        }
      }
    
      public void testSymmetryBroken() {
        EqualsTester tester =
            new EqualsTester().addEqualityGroup(named("foo").addPeers("bar"), named("bar"));
        try {
          tester.testEquals();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 17 15:49:06 UTC 2023
    - 12.9K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/CompactHashSet.java

        }
        int mask = hashTableMask();
        int index =
            CompactHashing.remove(
                object,
                /* value= */ null,
                mask,
                requireTable(),
                requireEntries(),
                requireElements(),
                /* values= */ null);
        if (index == -1) {
          return false;
        }
    
        moveLastEntry(index, mask);
        size--;
        incrementModCount();
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue May 28 18:11:09 UTC 2024
    - 24.9K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/TopKSelector.java

            threshold = buffer[i];
          }
        }
      }
    
      /**
       * Partitions the contents of buffer in the range [left, right] around the pivot element
       * previously stored in buffer[pivotValue]. Returns the new index of the pivot element,
       * pivotNewIndex, so that everything in [left, pivotNewIndex] is ≤ pivotValue and everything in
       * (pivotNewIndex, right] is greater than pivotValue.
       */
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/base/Splitter.java

        final CharMatcher trimmer;
        final boolean omitEmptyStrings;
    
        /**
         * Returns the first index in {@code toSplit} at or after {@code start} that contains the
         * separator.
         */
        abstract int separatorStart(int start);
    
        /**
         * Returns the first index in {@code toSplit} after {@code separatorPosition} that does not
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Feb 09 15:49:48 UTC 2024
    - 23.7K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/primitives/UnsignedIntsTest.java

          fail();
        } catch (NumberFormatException expected) {
        } catch (IllegalArgumentException expected) {
          // Kotlin native, see above
        }
    
        // The radix is used as an array index, so try a negative value.
        try {
          UnsignedInts.parseUnsignedInt("0", -1);
          fail();
        } catch (NumberFormatException expected) {
        } catch (IllegalArgumentException expected) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 06 16:10:08 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/primitives/UnsignedLongsTest.java

        }
    
        try {
          UnsignedLongs.parseUnsignedLong("0", Character.MAX_RADIX + 1);
          fail();
        } catch (NumberFormatException expected) {
        }
    
        // The radix is used as an array index, so try a negative value.
        try {
          UnsignedLongs.parseUnsignedLong("0", -1);
          fail();
        } catch (NumberFormatException expected) {
        }
      }
    
      public void testToString() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Feb 09 15:36:17 UTC 2024
    - 13.2K bytes
    - Viewed (0)
Back to top