Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 41 for setEntry (0.7 sec)

  1. android/guava-tests/test/com/google/common/collect/ImmutableRangeMapTest.java

                } else if (range2.contains(i)) {
                  expectedEntry = immutableEntry(range2, 2);
                }
    
                assertEquals(expectedEntry, rangeMap.getEntry(i));
              }
            }
          }
        }
      }
    
      public void testGetLargeRangeMap() {
        ImmutableRangeMap.Builder<Integer, Integer> builder = ImmutableRangeMap.builder();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/MapMakerInternalMap.java

       * collected. Does not impact recency ordering.
       */
      @CheckForNull
      E getEntry(@CheckForNull Object key) {
        if (key == null) {
          return null;
        }
        int hash = hash(key);
        return segmentFor(hash).getEntry(key, hash);
      }
    
      @Override
      public boolean containsKey(@CheckForNull Object key) {
        if (key == null) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 20:24:49 UTC 2024
    - 90.8K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/ObjectCountHashMap.java

        checkElementIndex(index, size);
        return values[index];
      }
    
      void setValue(int index, int newValue) {
        checkElementIndex(index, size);
        values[index] = newValue;
      }
    
      Entry<K> getEntry(int index) {
        checkElementIndex(index, size);
        return new MapEntry(index);
      }
    
      class MapEntry extends AbstractEntry<K> {
        @ParametricNullness final K key;
    
        int lastKnownIndex;
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 01 22:07:10 UTC 2021
    - 15K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/RangeMap.java

      V get(K key);
    
      /**
       * Returns the range containing this key and its associated value, if such a range is present in
       * the range map, or {@code null} otherwise.
       */
      @CheckForNull
      Entry<Range<K>, V> getEntry(K key);
    
      /**
       * Returns the minimal range {@linkplain Range#encloses(Range) enclosing} the ranges in this
       * {@code RangeMap}.
       *
       * @throws NoSuchElementException if this range map is empty
       */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/ArrayTable.java

        @Override
        public int size() {
          return keyIndex.size();
        }
    
        @Override
        public boolean isEmpty() {
          return keyIndex.isEmpty();
        }
    
        Entry<K, V> getEntry(final int index) {
          checkElementIndex(index, size());
          return new AbstractMapEntry<K, V>() {
            @Override
            public K getKey() {
              return ArrayMap.this.getKey(index);
            }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 26.3K bytes
    - Viewed (0)
  6. android/guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedPriorityBlockingQueue.java

     *   final static AtomicLong seq = new AtomicLong();
     *   final long seqNum;
     *   final E entry;
     *   public FIFOEntry(E entry) {
     *     seqNum = seq.getAndIncrement();
     *     this.entry = entry;
     *   }
     *   public E getEntry() { return entry; }
     *   public int compareTo(FIFOEntry&lt;E&gt; other) {
     *     int res = entry.compareTo(other.entry);
     *     if (res == 0 &amp;&amp; other.entry != this.entry)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Jun 07 21:36:32 UTC 2024
    - 19K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/ImmutableRangeMap.java

        } 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,
                Range::lowerBound,
                Cut.belowValue(key),
                KeyPresentBehavior.ANY_PRESENT,
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/core/io/TraversalUtil.java

                this(JarFileUtil.toJarFile(url), rootPackage, rootDir);
            }
    
            @Override
            public boolean isExistClass(final String className) {
                return jarFile.getEntry(toClassFile(ClassUtil.concatName(rootPackage, className))) != null;
            }
    
            @Override
            public void forEach(final ClassHandler handler) {
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 19.5K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/TreeRangeMapTest.java

        for (int i = MIN_BOUND - 1; i <= MAX_BOUND + 1; i++) {
          assertEquals(model.get(i), test.get(i));
    
          Entry<Range<Integer>, Integer> entry = test.getEntry(i);
          assertEquals(model.containsKey(i), entry != null);
          if (entry != null) {
            assertTrue(test.asMapOfRanges().entrySet().contains(entry));
          }
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sun Oct 06 13:04:03 UTC 2024
    - 29.9K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/ImmutableMultimap.java

          return keySet();
        }
    
        @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
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 27.9K bytes
    - Viewed (0)
Back to top