Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 978 for toString (0.17 sec)

  1. guava-testlib/src/com/google/common/collect/testing/testers/CollectionToStringTester.java

      public void testToString_minimal() {
        assertNotNull("toString() should not return null", collection.toString());
      }
    
      @CollectionSize.Require(ZERO)
      @CollectionFeature.Require(absent = NON_STANDARD_TOSTRING)
      public void testToString_size0() {
        assertEquals("emptyCollection.toString should return []", "[]", collection.toString());
      }
    
      @CollectionSize.Require(ONE)
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 3K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/google/MultimapToStringTester.java

      }
    
      @CollectionSize.Require(ONE)
      @CollectionFeature.Require(absent = NON_STANDARD_TOSTRING)
      public void testToStringSingleton() {
        assertEquals("{" + k0() + "=[" + v0() + "]}", multimap().toString());
      }
    
      @CollectionSize.Require(absent = ZERO)
      @CollectionFeature.Require(absent = NON_STANDARD_TOSTRING)
      @MapFeature.Require(ALLOWS_NULL_KEYS)
      public void testToStringWithNullKey() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 2.7K bytes
    - Viewed (0)
  3. maven-core/src/main/java/org/apache/maven/plugin/internal/MojoLogWrapper.java

        }
    
        public void debug(CharSequence content) {
            if (isDebugEnabled()) {
                logger.debug(toString(content));
            }
        }
    
        private String toString(CharSequence content) {
            if (content == null) {
                return "";
            } else {
                return content.toString();
            }
        }
    
        @Override
        public void debug(CharSequence content, Throwable error) {
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Fri Sep 22 09:07:17 GMT 2023
    - 3.3K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/CacheControlJvmTest.kt

          CacheControl.Builder()
            .maxAge(2, TimeUnit.DAYS)
            .build()
        assertThat(cacheControl.toString()).isEqualTo("max-age=172800")
        assertThat(cacheControl.toString()).isSameAs(cacheControl.toString())
      }
    
      @Test
      @Throws(Exception::class)
      fun timeDurationTruncatedToMaxValue() {
        val cacheControl =
          CacheControl.Builder()
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 7.3K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/collect/testing/testers/MapToStringTester.java

      public void testToString_minimal() {
        assertNotNull("toString() should not return null", getMap().toString());
      }
    
      @CollectionSize.Require(ZERO)
      @CollectionFeature.Require(absent = NON_STANDARD_TOSTRING)
      public void testToString_size0() {
        assertEquals("emptyMap.toString should return {}", "{}", getMap().toString());
      }
    
      @CollectionSize.Require(ONE)
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 3.4K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/testers/MapToStringTester.java

      public void testToString_minimal() {
        assertNotNull("toString() should not return null", getMap().toString());
      }
    
      @CollectionSize.Require(ZERO)
      @CollectionFeature.Require(absent = NON_STANDARD_TOSTRING)
      public void testToString_size0() {
        assertEquals("emptyMap.toString should return {}", "{}", getMap().toString());
      }
    
      @CollectionSize.Require(ONE)
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 3.4K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapToStringTester.java

      }
    
      @CollectionSize.Require(ONE)
      @CollectionFeature.Require(absent = NON_STANDARD_TOSTRING)
      public void testToStringSingleton() {
        assertEquals("{" + k0() + "=[" + v0() + "]}", multimap().toString());
      }
    
      @CollectionSize.Require(absent = ZERO)
      @CollectionFeature.Require(absent = NON_STANDARD_TOSTRING)
      @MapFeature.Require(ALLOWS_NULL_KEYS)
      public void testToStringWithNullKey() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 2.7K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/hash/ChecksumHashFunction.java

      private final int bits;
      private final String toString;
    
      ChecksumHashFunction(
          ImmutableSupplier<? extends Checksum> checksumSupplier, int bits, String toString) {
        this.checksumSupplier = checkNotNull(checksumSupplier);
        checkArgument(bits == 32 || bits == 64, "bits (%s) must be either 32 or 64", bits);
        this.bits = bits;
        this.toString = checkNotNull(toString);
      }
    
      @Override
      public int bits() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 20 18:43:59 GMT 2021
    - 2.7K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/hash/MacHashFunction.java

      private final Key key;
    
      private final String toString;
      private final int bits;
      private final boolean supportsClone;
    
      MacHashFunction(String algorithmName, Key key, String toString) {
        this.prototype = getMac(algorithmName, key);
        this.key = checkNotNull(key);
        this.toString = checkNotNull(toString);
        this.bits = prototype.getMacLength() * Byte.SIZE;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 15 22:31:55 GMT 2022
    - 3.6K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/cache/CacheReferencesTest.java

      }
    
      // A simple type whose .toString() will return the same value each time, but without maintaining
      // a strong reference to that value.
      static class Key {
        private final int value;
        private WeakReference<String> toString;
    
        Key(int value) {
          this.value = value;
        }
    
        @Override
        public synchronized String toString() {
          String s;
          if (toString != null) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 6.1K bytes
    - Viewed (0)
Back to top