Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 22 for endswith (0.46 sec)

  1. android/guava/src/com/google/common/reflect/ClassPath.java

        private final File file;
        private final String resourceName;
    
        final ClassLoader loader;
    
        static ResourceInfo of(File file, String resourceName, ClassLoader loader) {
          if (resourceName.endsWith(CLASS_FILE_NAME_EXTENSION)) {
            return new ClassInfo(file, resourceName, loader);
          } else {
            return new ResourceInfo(file, resourceName, loader);
          }
        }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Jan 05 17:43:40 GMT 2022
    - 24.9K bytes
    - Viewed (1)
  2. guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

      }
    
      public void testImmediateFailedFuture() throws Exception {
        Exception exception = new Exception();
        ListenableFuture<String> future = immediateFailedFuture(exception);
        assertThat(future.toString()).endsWith("[status=FAILURE, cause=[" + exception + "]]");
    
        try {
          getDone(future);
          fail();
        } catch (ExecutionException expected) {
          assertSame(exception, expected.getCause());
        }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 144.5K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/net/InternetDomainName.java

        // Normalize:
        // * ASCII characters to lowercase
        // * All dot-like characters to '.'
        // * Strip trailing '.'
    
        name = Ascii.toLowerCase(DOTS_MATCHER.replaceFrom(name, '.'));
    
        if (name.endsWith(".")) {
          name = name.substring(0, name.length() - 1);
        }
    
        checkArgument(name.length() <= MAX_LENGTH, "Domain name too long: '%s':", name);
        this.name = name;
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 05 20:47:23 GMT 2024
    - 28K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/net/InetAddresses.java

        checkNotNull(hostAddr);
    
        // Decide if this should be an IPv6 or IPv4 address.
        String ipString;
        int expectBytes;
        if (hostAddr.startsWith("[") && hostAddr.endsWith("]")) {
          ipString = hostAddr.substring(1, hostAddr.length() - 1);
          expectBytes = 16;
        } else {
          ipString = hostAddr;
          expectBytes = 4;
        }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Dec 15 19:31:54 GMT 2023
    - 44K bytes
    - Viewed (1)
  5. android/guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

      }
    
      public void testImmediateFailedFuture() throws Exception {
        Exception exception = new Exception();
        ListenableFuture<String> future = immediateFailedFuture(exception);
        assertThat(future.toString()).endsWith("[status=FAILURE, cause=[" + exception + "]]");
    
        try {
          getDone(future);
          fail();
        } catch (ExecutionException expected) {
          assertSame(exception, expected.getCause());
        }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 144.5K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/base/CharMatcher.java

          int negatedCharacters = DISTINCT_CHARS - totalCharacters;
          String suffix = ".negate()";
          final String description = toString();
          String negatedDescription =
              description.endsWith(suffix)
                  ? description.substring(0, description.length() - suffix.length())
                  : description + suffix;
          return new NegatedFastMatcher(
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 53.7K bytes
    - Viewed (0)
  7. guava/src/com/google/common/base/CharMatcher.java

          int negatedCharacters = DISTINCT_CHARS - totalCharacters;
          String suffix = ".negate()";
          final String description = toString();
          String negatedDescription =
              description.endsWith(suffix)
                  ? description.substring(0, description.length() - suffix.length())
                  : description + suffix;
          return new NegatedFastMatcher(
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 53.8K bytes
    - Viewed (0)
  8. guava/src/com/google/common/base/FinalizableReferenceQueue.java

            throw new FileNotFoundException(finalizerPath);
          }
    
          // Find URL pointing to base of class path.
          String urlString = finalizerUrl.toString();
          if (!urlString.endsWith(finalizerPath)) {
            throw new IOException("Unsupported path style: " + urlString);
          }
          urlString = urlString.substring(0, urlString.length() - finalizerPath.length());
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Wed Apr 26 20:07:17 GMT 2023
    - 13.1K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/base/FinalizableReferenceQueue.java

            throw new FileNotFoundException(finalizerPath);
          }
    
          // Find URL pointing to base of class path.
          String urlString = finalizerUrl.toString();
          if (!urlString.endsWith(finalizerPath)) {
            throw new IOException("Unsupported path style: " + urlString);
          }
          urlString = urlString.substring(0, urlString.length() - finalizerPath.length());
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 26 20:07:17 GMT 2023
    - 13.1K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/testing/AbstractPackageSanityTests.java

        abstract Optional<String> chop(String str);
    
        static Chopper suffix(String suffix) {
          return new Chopper() {
            @Override
            Optional<String> chop(String str) {
              if (str.endsWith(suffix)) {
                return Optional.of(str.substring(0, str.length() - suffix.length()));
              } else {
                return Optional.absent();
              }
            }
          };
        }
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri May 12 19:22:18 GMT 2023
    - 17.5K bytes
    - Viewed (0)
Back to top