Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 195 for index (0.04 sec)

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

        return map.keySpliterator();
      }
    
      @Override
      public boolean contains(@CheckForNull Object object) {
        return map.containsKey(object);
      }
    
      @Override
      K get(int index) {
        return map.entrySet().asList().get(index).getKey();
      }
    
      @Override
      public void forEach(Consumer<? super K> action) {
        checkNotNull(action);
        map.forEach((k, v) -> action.accept(k));
      }
    
      @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/ImmutableMapValues.java

      @Override
      public ImmutableList<V> asList() {
        final ImmutableList<Entry<K, V>> entryList = map.entrySet().asList();
        return new ImmutableList<V>() {
          @Override
          public V get(int index) {
            return entryList.get(index).getValue();
          }
    
          @Override
          boolean isPartialView() {
            return true;
          }
    
          @Override
          public int size() {
            return entryList.size();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 3K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/io/BaseEncoding.java

        }
    
        char encode(int bits) {
          return chars[bits];
        }
    
        boolean isValidPaddingStartPosition(int index) {
          return validPadding[index % charsPerChunk];
        }
    
        boolean canDecode(char ch) {
          return ch <= Ascii.MAX && decodabet[ch] != -1;
        }
    
        int decode(char ch) throws DecodingException {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Mar 15 16:33:32 UTC 2024
    - 41.7K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/CompactLinkedHashMap.java

        setSucceeds(entryIndex, ENDPOINT);
      }
    
      @Override
      void accessEntry(int index) {
        if (accessOrder) {
          // delete from previous position...
          setSucceeds(getPredecessor(index), getSuccessor(index));
          // ...and insert at the end.
          setSucceeds(lastEntry, index);
          setSucceeds(index, ENDPOINT);
          incrementModCount();
        }
      }
    
      @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/Sets.java

        final ImmutableMap<E, Integer> index = Maps.indexMap(set);
        checkNonnegative(size, "size");
        checkArgument(size <= index.size(), "size (%s) must be <= set.size() (%s)", size, index.size());
        if (size == 0) {
          return ImmutableSet.<Set<E>>of(ImmutableSet.<E>of());
        } else if (size == index.size()) {
          return ImmutableSet.<Set<E>>of(index.keySet());
        }
        return new AbstractSet<Set<E>>() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sun Jun 02 13:36:19 UTC 2024
    - 77.3K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/Iterables.java

      }
    
      /**
       * Returns the index in {@code iterable} of the first element that satisfies the provided {@code
       * predicate}, or {@code -1} if the Iterable has no such elements.
       *
       * <p>More formally, returns the lowest index {@code i} such that {@code
       * predicate.apply(Iterables.get(iterable, i))} returns {@code true}, or {@code -1} if there is no
       * such index.
       *
       * @since 2.0
       */
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Apr 24 19:38:27 UTC 2024
    - 42.5K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top