Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 101 - 110 of 2,238 for docstring (0.07 seconds)

  1. android/guava-tests/test/com/google/common/io/FilesTest.java

        assertThat(Files.toString(asciiFile, US_ASCII)).isEqualTo(ASCII);
        assertThat(Files.toString(i18nFile, UTF_8)).isEqualTo(I18N);
        assertThat(Files.toString(i18nFile, US_ASCII)).isNotEqualTo(I18N);
      }
    
      public void testWriteString() throws IOException {
        File temp = createTempFile();
        Files.write(I18N, temp, UTF_16LE);
        assertThat(Files.toString(temp, UTF_16LE)).isEqualTo(I18N);
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 19 18:53:45 GMT 2026
    - 22.8K bytes
    - Click Count (0)
  2. src/test/java/org/codelibs/fess/entity/RequestParameterTest.java

            // Test toString with null name
            String[] values = { "value1" };
            RequestParameter param = new RequestParameter(null, values);
    
            String expected = "[null, [value1]]";
            assertEquals(expected, param.toString());
        }
    
        @Test
        public void test_toString_withNullValues() {
            // Test toString with null values
            String name = "testParam";
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 9.9K bytes
    - Click Count (0)
  3. src/test/java/jcifs/internal/dtyp/ACETest.java

            assertEquals("test      ", sb.toString());
    
            // Test with exact width string
            sb = new StringBuffer();
            ace.appendCol(sb, "exact", 5);
            assertEquals("exact", sb.toString());
    
            // Test with longer string than width
            sb = new StringBuffer();
            ace.appendCol(sb, "longer string", 5);
            assertEquals("longer string", sb.toString());
        }
    
        @Test
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 13.6K bytes
    - Click Count (0)
  4. guava-tests/test/com/google/common/net/HostAndPortTest.java

        assertThat(HostAndPort.fromString("foo:101").toString()).isEqualTo("foo:101");
        assertThat(HostAndPort.fromString(":102").toString()).isEqualTo(":102");
        assertThat(HostAndPort.fromParts("1::2", 103).toString()).isEqualTo("[1::2]:103");
        assertThat(HostAndPort.fromString("[::1]:104").toString()).isEqualTo("[::1]:104");
    
        // Without ports.
        assertThat(HostAndPort.fromString("foo").toString()).isEqualTo("foo");
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 15:59:55 GMT 2026
    - 10K bytes
    - Click Count (0)
  5. guava/src/com/google/common/base/Functions.java

     * @author Jared Levy
     * @since 2.0
     */
    @GwtCompatible
    public final class Functions {
      private Functions() {}
    
      /**
       * A function equivalent to the method reference {@code Object::toString}. The function simply
       * invokes {@code toString} on its argument and returns the result. It throws a {@link
       * NullPointerException} on null input.
       *
       * <p><b>Warning:</b> The returned function may not be <i>consistent with equals</i> (as
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Aug 06 17:32:30 GMT 2025
    - 15.4K bytes
    - Click Count (0)
  6. src/test/java/jcifs/smb/SecurityBlobTest.java

                    Arguments.of(new byte[] { (byte) 0x7F, (byte) 0x80, (byte) 0xFF }, "7f80ff"));
        }
    
        // Verifies that toString() formats bytes as lower-case hex with zero-padding
        @ParameterizedTest(name = "toString renders hex for {0}")
        @MethodSource("hexCases")
        @DisplayName("toString() renders lower-case hex with zero-padding")
        void toString_rendersHex(byte[] input, String expected) {
            // Arrange
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 9.4K bytes
    - Click Count (0)
  7. guava/src/com/google/common/base/Joiner.java

            Entry<?, ?> entry = parts.next();
            appendable.append(joiner.toString(entry.getKey()));
            appendable.append(keyValueSeparator);
            appendable.append(joiner.toString(entry.getValue()));
            while (parts.hasNext()) {
              appendable.append(joiner.separator);
              Entry<?, ?> e = parts.next();
              appendable.append(joiner.toString(e.getKey()));
              appendable.append(keyValueSeparator);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Apr 14 15:16:19 GMT 2025
    - 21K bytes
    - Click Count (0)
  8. src/test/java/jcifs/internal/smb1/trans/nt/NtTransQuerySecurityDescTest.java

            // Constructor should initialize the object without throwing exceptions
            assertNotNull(querySecurityDesc);
    
            // Test toString contains the expected values to verify field initialization
            String str = querySecurityDesc.toString();
            assertTrue(str.contains("fid=0x" + Hexdump.toHexString(fid, 4)));
            assertTrue(str.contains("securityInformation=0x" + Hexdump.toHexString(securityInfo, 8)));
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 13.9K bytes
    - Click Count (0)
  9. android/guava/src/com/google/common/hash/MessageDigestHashFunction.java

      private final String toString;
    
      MessageDigestHashFunction(String algorithmName, String toString) {
        this.prototype = getMessageDigest(algorithmName);
        this.bytes = prototype.getDigestLength();
        this.toString = checkNotNull(toString);
        this.supportsClone = supportsClone(prototype);
      }
    
      MessageDigestHashFunction(String algorithmName, int bytes, String toString) {
        this.toString = checkNotNull(toString);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Feb 13 17:34:21 GMT 2025
    - 4.9K bytes
    - Click Count (0)
  10. android/guava/src/com/google/common/net/InetAddresses.java

      private static final CharMatcher IPV6_DELIMITER_MATCHER = CharMatcher.is(IPV6_DELIMITER);
      private static final Inet4Address LOOPBACK4 = (Inet4Address) forString("127.0.0.1");
      private static final Inet4Address ANY4 = (Inet4Address) forString("0.0.0.0");
    
      private InetAddresses() {}
    
      /**
       * Returns an {@link Inet4Address}, given a byte array representation of the IPv4 address.
       *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 19 18:53:45 GMT 2026
    - 47.7K bytes
    - Click Count (0)
Back to Top