Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 22 for endswith (0.24 sec)

  1. guava-tests/test/com/google/common/collect/WriteReplaceOverridesTest.java

        for (ClassInfo info : ClassPath.from(getClass().getClassLoader()).getAllClasses()) {
          if (!GUAVA_PACKAGES.contains(info.getPackageName())) {
            continue;
          }
          if (info.getName().endsWith("GwtSerializationDependencies")) {
            continue; // These classes exist only for the GWT compiler, not to be used.
          }
          if (
          /*
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 4.9K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/WriteReplaceOverridesTest.java

        for (ClassInfo info : ClassPath.from(getClass().getClassLoader()).getAllClasses()) {
          if (!GUAVA_PACKAGES.contains(info.getPackageName())) {
            continue;
          }
          if (info.getName().endsWith("GwtSerializationDependencies")) {
            continue; // These classes exist only for the GWT compiler, not to be used.
          }
          if (
          /*
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 4.9K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/reflect/ClassPathTest.java

          assertThat(urls.get(0).getPath()).endsWith("/relative/path/to/some.jar");
    
          assertThat(urls.get(1)).isEqualTo(new URL("file:///absolute/path/to/some.jar"));
    
          assertThat(urls.get(2).getProtocol()).isEqualTo("file");
          assertThat(urls.get(2).getAuthority()).isNull();
          assertThat(urls.get(2).getPath()).endsWith("/relative/path/to/class/root");
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Jul 07 16:50:33 GMT 2023
    - 24.9K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/reflect/ClassPathTest.java

          assertThat(urls.get(0).getPath()).endsWith("/relative/path/to/some.jar");
    
          assertThat(urls.get(1)).isEqualTo(new URL("file:///absolute/path/to/some.jar"));
    
          assertThat(urls.get(2).getProtocol()).isEqualTo("file");
          assertThat(urls.get(2).getAuthority()).isNull();
          assertThat(urls.get(2).getPath()).endsWith("/relative/path/to/class/root");
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Jul 10 17:06:37 GMT 2023
    - 27.7K bytes
    - Viewed (0)
  5. 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)
  6. android/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 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 19:22:18 GMT 2023
    - 17.5K bytes
    - Viewed (0)
  7. 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)
  8. guava-gwt/test/com/google/common/GwtTestSuite.java

      public static Test suite() throws IOException {
        GWTTestSuite suite = new GWTTestSuite();
        for (ClassInfo info
            : ClassPath.from(GwtTestSuite.class.getClassLoader()).getTopLevelClasses()) {
          if (info.getName().endsWith("_gwt")) {
            Class<?> clazz = info.load();
            // TODO(cpovirk): why does asSubclass() throw? Is it something about ClassLoaders?
            @SuppressWarnings("unchecked")
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Jun 23 13:24:59 GMT 2016
    - 1.6K bytes
    - Viewed (0)
  9. guava/src/com/google/common/base/Strings.java

          p--;
        }
        return a.subSequence(0, p).toString();
      }
    
      /**
       * Returns the longest string {@code suffix} such that {@code a.toString().endsWith(suffix) &&
       * b.toString().endsWith(suffix)}, taking care not to split surrogate pairs. If {@code a} and
       * {@code b} have no common suffix, returns the empty string.
       *
       * @since 11.0
       */
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Sep 17 20:47:03 GMT 2021
    - 12.6K bytes
    - Viewed (0)
  10. 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)
Back to top