Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for fromValid (0.14 sec)

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

      }
    
      private static HostSpecifier spec(String specifier) {
        return HostSpecifier.fromValid(specifier);
      }
    
      public void testNulls() {
        final NullPointerTester tester = new NullPointerTester();
    
        tester.testAllPublicStaticMethods(HostSpecifier.class);
        tester.testAllPublicInstanceMethods(HostSpecifier.fromValid("google.com"));
      }
    
      private void assertGood(String spec) throws ParseException {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Feb 18 15:33:20 UTC 2022
    - 3.7K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/net/HostSpecifier.java

       * parsing fails. Always use this method in preference to {@link #fromValid(String)} for a
       * specifier that is not already known to be valid.
       *
       * @throws ParseException if the specifier is not valid.
       */
      @CanIgnoreReturnValue // TODO(b/219820829): consider removing
      public static HostSpecifier from(String specifier) throws ParseException {
        try {
          return fromValid(specifier);
        } catch (IllegalArgumentException e) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Apr 05 09:18:40 UTC 2023
    - 6K bytes
    - Viewed (0)
  3. guava/src/com/google/common/net/HostSpecifier.java

       * parsing fails. Always use this method in preference to {@link #fromValid(String)} for a
       * specifier that is not already known to be valid.
       *
       * @throws ParseException if the specifier is not valid.
       */
      @CanIgnoreReturnValue // TODO(b/219820829): consider removing
      public static HostSpecifier from(String specifier) throws ParseException {
        try {
          return fromValid(specifier);
        } catch (IllegalArgumentException e) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Apr 05 09:18:40 UTC 2023
    - 6K bytes
    - Viewed (0)
Back to top