Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 67 for isFull (0.03 sec)

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

        // True if getValue never returns null.
        private boolean isFull() {
          return size == keyToIndex().size();
        }
    
        K getKey(int index) {
          return keyToIndex().keySet().asList().get(index);
        }
    
        abstract @Nullable V getValue(int keyIndex);
    
        @Override
        ImmutableSet<K> createKeySet() {
          return isFull() ? keyToIndex().keySet() : super.createKeySet();
        }
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Sep 22 21:07:18 UTC 2025
    - 9.6K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/AbstractTableTest.java

        }
      }
    
      public void testPut() {
        assertThat(table.put("foo", 1, cellValue('a'))).isNull();
        assertThat(table.put("bar", 1, cellValue('b'))).isNull();
        assertThat(table.put("foo", 3, cellValue('c'))).isNull();
        assertEquals((Character) 'a', table.put("foo", 1, cellValue('d')));
        assertEquals((Character) 'd', table.get("foo", 1));
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 16:03:47 UTC 2025
    - 6K bytes
    - Viewed (0)
  3. okcurl/src/test/kotlin/okhttp3/curl/MainTest.kt

        assertThat(request.body).isNull()
      }
    
      @Test
      fun userAgent() {
        val request = fromArgs("-A", "foo", "http://example.com").createRequest()
        assertThat(request.method).isEqualTo("GET")
        assertThat(request.url.toString()).isEqualTo("http://example.com/")
        assertThat(request.header("User-Agent")).isEqualTo("foo")
        assertThat(request.body).isNull()
      }
    
      @Test
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  4. okhttp/src/commonTest/kotlin/okhttp3/CompressionInterceptorTest.kt

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package okhttp3
    
    import assertk.assertThat
    import assertk.assertions.isEqualTo
    import assertk.assertions.isNull
    import okhttp3.HttpUrl.Companion.toHttpUrl
    import okhttp3.ResponseBody.Companion.asResponseBody
    import okhttp3.ResponseBody.Companion.toResponseBody
    import okio.Buffer
    import okio.ByteString.Companion.encodeUtf8
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Fri Aug 01 06:04:22 UTC 2025
    - 3K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/CompactLinkedHashMapTest.java

        CompactLinkedHashMap<Integer, String> map = CompactLinkedHashMap.create();
        assertThat(map.needsAllocArrays()).isTrue();
        assertThat(map.entries).isNull();
        assertThat(map.keys).isNull();
        assertThat(map.values).isNull();
        assertThat(map.links).isNull();
    
        map.put(1, Integer.toString(1));
        assertThat(map.needsAllocArrays()).isFalse();
        assertThat(map.entries).hasLength(CompactHashing.DEFAULT_SIZE);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 18:44:53 UTC 2025
    - 6.7K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/MutableClassToInstanceMapTest.java

        assertThat(map.get(Integer.class)).isNull();
        assertThat(map.getInstance(Integer.class)).isNull();
    
        map.put(Long.class, null);
        assertThat(map.get(Long.class)).isNull();
        assertThat(map.getInstance(Long.class)).isNull();
      }
    
      public void testPrimitiveAndWrapper() {
        assertThat(map.getInstance(int.class)).isNull();
        assertThat(map.getInstance(Integer.class)).isNull();
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 16:03:47 UTC 2025
    - 5K bytes
    - Viewed (0)
  7. okhttp/src/jvmTest/kotlin/okhttp3/internal/platform/Jdk8WithJettyBootPlatformTest.kt

     * limitations under the License.
     */
    package okhttp3.internal.platform
    
    import assertk.assertThat
    import assertk.assertions.isNotNull
    import assertk.assertions.isNull
    import okhttp3.internal.platform.Jdk8WithJettyBootPlatform.Companion.buildIfSupported
    import okhttp3.testing.PlatformRule
    import org.junit.jupiter.api.Assumptions.assumeFalse
    import org.junit.jupiter.api.Assumptions.assumeTrue
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  8. android-test/src/test/kotlin/okhttp/android/test/BaseOkHttpClientUnitTest.kt

     * limitations under the License.
     *
     */
    package okhttp.android.test
    
    import assertk.assertThat
    import assertk.assertions.isEqualTo
    import assertk.assertions.isNotNull
    import assertk.assertions.isNull
    import java.net.InetAddress
    import java.net.UnknownHostException
    import okhttp3.Cache
    import okhttp3.HttpUrl.Companion.toHttpUrl
    import okhttp3.OkHttpClient
    import okhttp3.Request
    import okio.Path.Companion.toPath
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Tue Jul 22 20:03:31 UTC 2025
    - 2.3K bytes
    - Viewed (0)
  9. okhttp/src/jvmTest/kotlin/okhttp3/CallTagsTest.kt

        assertThat(call.tag(Boolean::class)).isNull()
        assertThat(call.tag(Any::class)).isNull()
    
        // Check the Java APIs too.
        assertThat(call.tag(String::class.java)).isEqualTo("hello")
        assertThat(call.tag(Integer::class.java)).isEqualTo(5)
        assertThat(call.tag(Boolean::class.java)).isNull()
        assertThat(call.tag(Any::class.java)).isNull()
      }
    
      @Test
      fun tagsCanBeComputed() {
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Sun Oct 26 14:54:46 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/base/EnumsTest.java

        assertEquals(TestEnum.HONDA, converter.convert("HONDA"));
        assertEquals(TestEnum.POODLE, converter.convert("POODLE"));
        assertThat(converter.convert(null)).isNull();
        assertThat(converter.reverse().convert(null)).isNull();
      }
    
      public void testStringConverter_convertError() {
        Converter<String, TestEnum> converter = Enums.stringConverter(TestEnum.class);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 20:07:52 UTC 2025
    - 8.3K bytes
    - Viewed (0)
Back to top