Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for fromstring (0.27 sec)

  1. android/guava-tests/test/com/google/common/net/HostAndPortTest.java

        assertEquals(80, HostAndPort.fromString("host:80").getPortOrDefault(123));
        assertEquals(123, HostAndPort.fromString("host").getPortOrDefault(123));
      }
    
      public void testHashCodeAndEquals() {
        HostAndPort hpNoPort1 = HostAndPort.fromString("foo::123");
        HostAndPort hpNoPort2 = HostAndPort.fromString("foo::123");
        HostAndPort hpNoPort3 = HostAndPort.fromString("[foo::123]");
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 17 11:19:47 GMT 2023
    - 9.6K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/hash/HashCodeTest.java

        assertThrows(IllegalArgumentException.class, () -> HashCode.fromString("7"));
        HashCode unused = HashCode.fromString("7f");
      }
    
      public void testFromStringFailsWithOddLengthInput() {
        assertThrows(IllegalArgumentException.class, () -> HashCode.fromString("7f8"));
      }
    
      public void testIntWriteBytesTo() {
        byte[] dest = new byte[4];
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 13.1K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/net/HostAndPortTest.java

        assertEquals(80, HostAndPort.fromString("host:80").getPortOrDefault(123));
        assertEquals(123, HostAndPort.fromString("host").getPortOrDefault(123));
      }
    
      public void testHashCodeAndEquals() {
        HostAndPort hpNoPort1 = HostAndPort.fromString("foo::123");
        HostAndPort hpNoPort2 = HostAndPort.fromString("foo::123");
        HostAndPort hpNoPort3 = HostAndPort.fromString("[foo::123]");
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Apr 17 11:19:47 GMT 2023
    - 10K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/primitives/ParseRequest.java

    final class ParseRequest {
      final String rawValue;
      final int radix;
    
      private ParseRequest(String rawValue, int radix) {
        this.rawValue = rawValue;
        this.radix = radix;
      }
    
      static ParseRequest fromString(String stringValue) {
        if (stringValue.length() == 0) {
          throw new NumberFormatException("empty string");
        }
    
        // Handle radix specifier if present
        String rawValue;
        int radix;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Apr 22 13:09:25 GMT 2021
    - 1.7K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/net/HostAndPort.java

       * Chain this call after {@link #fromString(String)} to increase the strictness of the parser, and
       * disallow IPv6 literals that don't contain these brackets.
       *
       * <p>Note that this parser identifies IPv6 literals solely based on the presence of a colon. To
       * perform actual validation of IP addresses, see the {@link InetAddresses#forString(String)}
       * method.
       *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Aug 22 20:55:57 GMT 2023
    - 11.3K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/hash/HashCodeTest.java

        assertThrows(IllegalArgumentException.class, () -> HashCode.fromString("7"));
        HashCode unused = HashCode.fromString("7f");
      }
    
      public void testFromStringFailsWithOddLengthInput() {
        assertThrows(IllegalArgumentException.class, () -> HashCode.fromString("7f8"));
      }
    
      public void testIntWriteBytesTo() {
        byte[] dest = new byte[4];
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 13.1K bytes
    - Viewed (0)
  7. maven-core/src/main/java/org/apache/maven/configuration/internal/DefaultBeanConfigurator.java

            @Override
            public boolean canConvert(Class<?> type) {
                return Path.class.equals(type);
            }
    
            @Override
            protected Object fromString(String value) throws ComponentConfigurationException {
                return Paths.get(value.replace('/' == File.separatorChar ? '\\' : '/', File.separatorChar));
            }
    
            @Override
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Wed Sep 06 08:39:32 GMT 2023
    - 8.2K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/io/TempFileCreator.java

          if (views.contains("posix")) {
            filePermissions = () -> asFileAttribute(PosixFilePermissions.fromString("rw-------"));
            directoryPermissions = () -> asFileAttribute(PosixFilePermissions.fromString("rwx------"));
          } else if (views.contains("acl")) {
            filePermissions = directoryPermissions = userPermissions();
          } else {
            filePermissions =
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Oct 06 17:11:11 GMT 2023
    - 12.5K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/cache/CacheBuilderSpecTest.java

        assertSame(value, cache.getUnchecked(key));
        assertEquals(0, cache.size());
        assertFalse(cache.asMap().containsKey(key));
      }
    
      public void testCacheBuilderFrom_string() {
        CacheBuilder<?, ?> fromString =
            CacheBuilder.from(
                "initialCapacity=10,maximumSize=20,concurrencyLevel=30,"
                    + "weakKeys,weakValues,expireAfterAccess=10m");
        CacheBuilder<?, ?> expected =
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 19.2K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/net/HostSpecifier.java

       */
      public static HostSpecifier fromValid(String specifier) {
        // Verify that no port was specified, and strip optional brackets from
        // IPv6 literals.
        HostAndPort parsedHost = HostAndPort.fromString(specifier);
        Preconditions.checkArgument(!parsedHost.hasPort());
        String host = parsedHost.getHost();
    
        // Try to interpret the specifier as an IP address. Note we build
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 05 09:18:40 GMT 2023
    - 6K bytes
    - Viewed (0)
Back to top