Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 32 for fromString (0.21 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 Apr 12 12:43:09 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 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 13.1K bytes
    - Viewed (0)
  3. 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 Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 13.1K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/net/HostAndPort.java

    import java.io.Serializable;
    import javax.annotation.CheckForNull;
    
    /**
     * An immutable representation of a host and port.
     *
     * <p>Example usage:
     *
     * <pre>
     * HostAndPort hp = HostAndPort.fromString("[2001:db8::1]")
     *     .withDefaultPort(80)
     *     .requireBracketsForIPv6();
     * hp.getHost();   // returns "2001:db8::1"
     * hp.getPort();   // returns 80
     * hp.toString();  // returns "[2001:db8::1]:80"
     * </pre>
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Aug 22 20:55:57 GMT 2023
    - 11.3K bytes
    - Viewed (0)
  5. 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)
  6. docs/sts/client_grants/sts_element.py

            self.element = element
    
        @classmethod
        def fromstring(cls, root_name, data):
            """Initialize STSElement from name and XML string data.
    
            :param name: Name for XML data. Used in XML errors.
            :param data: string data to be parsed.
            :return: Returns an STSElement.
            """
            try:
                return cls(root_name, cElementTree.fromstring(data))
            except _ETREE_EXCEPTIONS as error:
    Python
    - Registered: Sun Apr 14 19:28:10 GMT 2024
    - Last Modified: Fri Apr 23 18:58:53 GMT 2021
    - 2.5K bytes
    - Viewed (0)
  7. 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 12 12:43:09 GMT 2024
    - Last Modified: Thu Apr 22 13:09:25 GMT 2021
    - 1.7K bytes
    - Viewed (0)
  8. maven-core/src/test/resources/apiv4-repo/org/codehaus/plexus/plexus-container-default/1.0-alpha-16/plexus-container-default-1.0-alpha-16.jar

    AbstractBasicConvert { public void BooleanConverter(); public boolean canConvert(Class); public Object fromString(String); } org/codehaus/plexus/component/configurator/converters/basic/ByteConverter.class package org.codehaus.plexus.component.configurator.converters.basic; public synchronized class ByteConverter extends AbstractBasicConvert { public void ByteConverter(); public boolean canConvert(Class); public Object fromString(String); } org/codehaus/plexus/component/configurator/converters/basic/CharConverter.class...
    Archive
    - Registered: Sun Apr 14 03:35:08 GMT 2024
    - Last Modified: Sun Oct 02 08:41:25 GMT 2022
    - 205.7K bytes
    - Viewed (0)
  9. internal/s3select/sql/funceval.go

    		return nil, errIncorrectSQLFunctionArgumentType(err)
    	}
    	return FromString(strings.ToLower(s)), nil
    }
    
    func upperCase(v *Value) (*Value, error) {
    	inferTypeAsString(v)
    	s, ok := v.ToString()
    	if !ok {
    		err := fmt.Errorf("%s expects a string argument", sqlFnUpper)
    		return nil, errIncorrectSQLFunctionArgumentType(err)
    	}
    	return FromString(strings.ToUpper(s)), nil
    }
    
    Go
    - Registered: Sun Apr 07 19:28:10 GMT 2024
    - Last Modified: Tue Jun 01 21:59:40 GMT 2021
    - 13.2K bytes
    - Viewed (0)
  10. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/components/KtFe10PsiTypeProvider.kt

            val signature = StringCharacterIterator(canonicalSignature)
            val javaType = SignatureParsing.parseTypeString(signature, StubBuildingVisitor.GUESSING_MAPPER)
            val typeInfo = TypeInfo.fromString(javaType, false)
            val typeText = TypeInfo.createTypeText(typeInfo) ?: return null
    
            return SyntheticTypeElement(useSitePosition, typeText)
        }
    
        override fun asKtType(
    Plain Text
    - Registered: Fri Apr 12 08:18:09 GMT 2024
    - Last Modified: Thu Mar 28 16:10:07 GMT 2024
    - 6.4K bytes
    - Viewed (0)
Back to top