Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 41 for setEntry (0.06 sec)

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

        assertEquals(1, segment.count);
        assertSame(newValue, segment.get(key, hash));
    
        // cleared
        InternalEntry<Object, Object, ?> entry = segment.getEntry(key, hash);
        WeakValueReference<Object, Object, ?> oldValueRef =
            segment.newWeakValueReferenceForTesting(entry, oldValue);
        segment.setWeakValueReferenceForTesting(entry, oldValueRef);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 20 17:00:05 UTC 2024
    - 35.1K bytes
    - Viewed (0)
  2. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/PluginsMetadataGenerator.java

                if (Files.isRegularFile(artifactPath)) {
                    try (JarFile artifactJar = new JarFile(artifactPath.toFile(), false)) {
                        ZipEntry pluginDescriptorEntry = artifactJar.getEntry(PLUGIN_DESCRIPTOR_LOCATION);
    
                        if (pluginDescriptorEntry != null) {
                            try (InputStream is = artifactJar.getInputStream(pluginDescriptorEntry)) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/JdkBackedImmutableMultiset.java

      @Override
      public ImmutableSet<E> elementSet() {
        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: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  4. android/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
    - 6.5K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/Interners.java

          while (true) {
            // trying to read the canonical...
            @SuppressWarnings("rawtypes") // using raw types to avoid a bug in our nullness checker :(
            InternalEntry entry = map.getEntry(sample);
            if (entry != null) {
              Object canonical = entry.getKey();
              if (canonical != null) { // only matters if weak/soft keys are used
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Mar 13 14:30:51 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/AbstractMapBasedMultiset.java

          }
        };
      }
    
      @Override
      final Iterator<Entry<E>> entryIterator() {
        return new Itr<Entry<E>>() {
          @Override
          Entry<E> result(int entryIndex) {
            return backingMap.getEntry(entryIndex);
          }
        };
      }
    
      /** Allocation-free implementation of {@code target.addAll(this)}. */
      void addTo(Multiset<? super E> target) {
        checkNotNull(target);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Mar 06 16:06:58 UTC 2023
    - 8.2K bytes
    - Viewed (0)
  7. 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)
  8. android/guava/src/com/google/common/collect/Interners.java

          while (true) {
            // trying to read the canonical...
            @SuppressWarnings("rawtypes") // using raw types to avoid a bug in our nullness checker :(
            InternalEntry entry = map.getEntry(sample);
            if (entry != null) {
              Object canonical = entry.getKey();
              if (canonical != null) { // only matters if weak/soft keys are used
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Mar 13 14:30:51 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  9. 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.4K bytes
    - Viewed (0)
  10. 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)
Back to top