Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 228 for index (0.21 sec)

  1. guava/src/com/google/common/base/JdkPattern.java

          return matcher.matches();
        }
    
        @Override
        public boolean find() {
          return matcher.find();
        }
    
        @Override
        public boolean find(int index) {
          return matcher.find(index);
        }
    
        @Override
        public String replaceAll(String replacement) {
          return matcher.replaceAll(replacement);
        }
    
        @Override
        public int end() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Feb 09 15:49:48 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/MapMakerInternalMap.java

            AtomicReferenceArray<E> table = this.table;
            int index = hash & (table.length() - 1);
            E first = table.get(index);
    
            for (E e = first; e != null; e = e.getNext()) {
              if (e == entry) {
                ++modCount;
                E newFirst = removeFromChain(first, e);
                newCount = this.count - 1;
                table.set(index, newFirst);
                this.count = newCount; // write-volatile
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sat May 18 03:24:34 UTC 2024
    - 90.8K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/base/PreconditionsTest.java

          assertThat(expected).hasMessageThat().isEqualTo("index (-1) must not be negative");
        }
      }
    
      public void testCheckElementIndex_tooHigh() {
        try {
          Preconditions.checkElementIndex(1, 1);
          fail();
        } catch (IndexOutOfBoundsException expected) {
          assertThat(expected).hasMessageThat().isEqualTo("index (1) must be less than size (1)");
        }
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Feb 09 15:49:48 UTC 2024
    - 19.8K bytes
    - Viewed (0)
  4. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ForwardingImmutableList.java

        return delegateList().indexOf(object);
      }
    
      public int lastIndexOf(@Nullable Object object) {
        return delegateList().lastIndexOf(object);
      }
    
      public E get(int index) {
        return delegateList().get(index);
      }
    
      public ImmutableList<E> subList(int fromIndex, int toIndex) {
        return unsafeDelegateList(delegateList().subList(fromIndex, toIndex));
      }
    
      @Override
      public Object[] toArray() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jan 23 18:43:40 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/ImmutableMapValues.java

      @Override
      public ImmutableList<V> asList() {
        final ImmutableList<Entry<K, V>> entryList = map.entrySet().asList();
        return new ImmutableAsList<V>() {
          @Override
          public V get(int index) {
            return entryList.get(index).getValue();
          }
    
          @Override
          ImmutableCollection<V> delegateCollection() {
            return ImmutableMapValues.this;
          }
    
          // redeclare to help optimizers with b/310253115
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top