Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 399 for retValue (2.29 sec)

  1. android/guava/src/com/google/common/collect/HashBiMap.java

        @Override
        @ParametricNullness
        public K getValue() {
          updateIndex();
          // For discussion of unsafeNull() and uncheckedCastNullableTToT(), see EntryForKey.getValue().
          return (index == ABSENT) ? unsafeNull() : uncheckedCastNullableTToT(biMap.keys[index]);
        }
    
        @Override
        @ParametricNullness
        public K setValue(@ParametricNullness K key) {
          updateIndex();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 36.2K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/reflect/MutableTypeToInstanceMapTest.java

        assertEquals(TypeToken.of(String.class), map.entrySet().iterator().next().getKey());
        assertEquals("test", map.entrySet().iterator().next().getValue());
        assertThrows(
            UnsupportedOperationException.class, () -> map.entrySet().iterator().next().setValue(1));
      }
    
      public void testEntrySetToArrayMutationThrows() {
        map.putInstance(String.class, "test");
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 8K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/AbstractMapEntry.java

          Entry<?, ?> that = (Entry<?, ?>) object;
          return Objects.equals(this.getKey(), that.getKey())
              && Objects.equals(this.getValue(), that.getValue());
        }
        return false;
      }
    
      @Override
      public int hashCode() {
        K k = getKey();
        V v = getValue();
        return ((k == null) ? 0 : k.hashCode()) ^ ((v == null) ? 0 : v.hashCode());
      }
    
      /** Returns a string representation of the form {@code {key}={value}}. */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 1.9K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/MapInterfaceTest.java

          for (Entry<K, V> entry : entrySet) {
            assertTrue(map.containsKey(entry.getKey()));
            assertTrue(map.containsValue(entry.getValue()));
            int expectedHash =
                (entry.getKey() == null ? 0 : entry.getKey().hashCode())
                    ^ (entry.getValue() == null ? 0 : entry.getValue().hashCode());
            assertEquals(expectedHash, entry.hashCode());
            expectedEntrySetHash += expectedHash;
          }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 43.9K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/helper/LabelTypeHelperTest.java

            try {
                LabelTypePattern pattern = new LabelTypePattern("test", "/test.*", "/exclude.*");
                assertNotNull(pattern);
                assertEquals("test", pattern.getValue());
            } catch (Exception e) {
                fail("LabelTypePattern constructor should not throw an exception: " + e.getMessage());
            }
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 19 23:49:30 UTC 2025
    - 12.4K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/Helpers.java

              Entry<K, V> e = (Entry<K, V>) o;
              e.setValue(value); // muhahaha!
    
              return equal(this.getKey(), e.getKey()) && equal(this.getValue(), e.getValue());
            }
            return false;
          }
    
          @Override
          public int hashCode() {
            K k = getKey();
            V v = getValue();
            return ((k == null) ? 0 : k.hashCode()) ^ ((v == null) ? 0 : v.hashCode());
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 17.2K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/ImmutableMapEntry.java

      public final K getKey() {
        return super.getKey();
      }
    
      @Override
      @ParametricNullness
      public final V getValue() {
        return super.getValue();
      }
    
      @Override
      @ParametricNullness
      public final V setValue(@ParametricNullness V value) {
        return super.setValue(value);
      }
    
      @Nullable ImmutableMapEntry<K, V> getNextInKeyBucket() {
        return null;
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jul 01 21:42:29 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/cache/PopulatedCachesTest.java

            assertSame(entry.getValue(), cache.asMap().putIfAbsent(entry.getKey(), newValue));
            Object newKey = new Object();
            assertNull(cache.asMap().putIfAbsent(newKey, entry.getValue()));
            // this getUnchecked() call shouldn't be a cache miss; verified below
            assertEquals(entry.getValue(), cache.getUnchecked(entry.getKey()));
            assertEquals(entry.getValue(), cache.getUnchecked(newKey));
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/CompactHashMap.java

        }
    
        @Override
        @ParametricNullness
        public V setValue(@ParametricNullness V value) {
          Map<K, V> delegate = delegateOrNull();
          if (delegate != null) {
            return uncheckedCastNullableTToT(delegate.put(key, value)); // See discussion in getValue().
          }
          updateLastKnownIndex();
          if (lastKnownIndex == -1) {
            put(key, value);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 39.6K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb1/http/NtlmHttpURLConnection.java

            }
            final Iterator entries = map.entrySet().iterator();
            while (entries.hasNext()) {
                final Map.Entry entry = (Map.Entry) entries.next();
                entry.setValue(Collections.unmodifiableList((List) entry.getValue()));
            }
            return headerFields = Collections.unmodifiableMap(map);
        }
    
        @Override
        public Map getHeaderFields() {
            if (headerFields != null) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 22.1K bytes
    - Viewed (0)
Back to top