Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 29 for parents (0.12 sec)

  1. android/guava-tests/test/com/google/common/io/MoreFilesTest.java

        Path file = root().resolve("parent/nonexistent.file");
        Path parent = file.getParent();
        assertFalse(Files.exists(parent));
        assertThrows(IOException.class, () -> MoreFiles.createParentDirectories(file));
      }
    
      public void testCreateParentDirectories_nonDirectoryParentExists() throws IOException {
        Path parent = createTempFile();
        assertTrue(Files.isRegularFile(parent));
        Path file = parent.resolve("foo");
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 16:07:00 UTC 2024
    - 26.5K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/reflect/ClassPathTest.java

            .inOrder();
      }
    
      @AndroidIncompatible // Android forbids null parent ClassLoader
      public void testClassPathEntries_duplicateUri_parentWins() throws Exception {
        URL url = new URL("file:/a");
        URLClassLoader parent = new URLClassLoader(new URL[] {url}, null);
        URLClassLoader child = new URLClassLoader(new URL[] {url}, parent) {};
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 22:09:38 UTC 2024
    - 25K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/io/FilesTest.java

        File parent = file.getParentFile();
        File grandparent = parent.getParentFile();
        assertFalse(grandparent.exists());
        Files.createParentDirs(file);
        assertTrue(parent.exists());
      }
    
      public void testCreateParentDirs_nonDirectoryParentExists() throws IOException {
        File parent = getTestFile("ascii.txt");
        assertTrue(parent.isFile());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 22.1K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/MinMaxPriorityQueue.java

          // Bubble up max levels.
          E parent;
          // If toTrickle is moved up to a parent of removeIndex, the parent is
          // placed in removeIndex position. We must return that to the iterator so
          // that it knows to skip it.
          if (crossOver < removeIndex) {
            // We crossed over to the parent level in crossOver, so the parent
            // has already been moved.
            parent = elementData(removeIndex);
          } else {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 34.1K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/io/Files.java

        }
      }
    
      /**
       * Creates any necessary but nonexistent parent directories of the specified file. Note that if
       * this operation fails it may have succeeded in creating some (but not all) of the necessary
       * parent directories.
       *
       * @throws IOException if an I/O error occurs, or if any necessary but nonexistent parent
       *     directories of the specified file could not be created.
       * @since 4.0
       */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jul 22 19:03:12 UTC 2024
    - 33.1K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/io/MoreFiles.java

          // "C:foo" ("C:" - working dir of drive C on Windows)
          return parent;
        }
    
        // Paths that don't have a parent:
        if (path.getNameCount() == 0) {
          // "/", "C:\", "\" (no parent)
          // "" (undefined, though typically parent of working dir)
          // "C:" (parent of working dir of drive C on Windows)
          //
          // For working dir paths ("" and "C:"), return null because:
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 16:07:00 UTC 2024
    - 35K bytes
    - Viewed (0)
  7. guava/src/com/google/common/io/MoreFiles.java

          // "C:foo" ("C:" - working dir of drive C on Windows)
          return parent;
        }
    
        // Paths that don't have a parent:
        if (path.getNameCount() == 0) {
          // "/", "C:\", "\" (no parent)
          // "" (undefined, though typically parent of working dir)
          // "C:" (parent of working dir of drive C on Windows)
          //
          // For working dir paths ("" and "C:"), return null because:
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 16:07:00 UTC 2024
    - 34.5K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/net/InternetDomainNameTest.java

        InternetDomainName origin = InternetDomainName.from("foo.com");
        InternetDomainName parent = origin.parent();
        assertEquals("com", parent.toString());
    
        // These would throw an exception if leniency were not preserved during parent() and child()
        // calls.
        InternetDomainName child = parent.child(LOTS_OF_DELTAS);
        InternetDomainName unused = child.child(LOTS_OF_DELTAS);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 15:41:36 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/io/FilesTest.java

        File parent = file.getParentFile();
        File grandparent = parent.getParentFile();
        assertFalse(grandparent.exists());
        Files.createParentDirs(file);
        assertTrue(parent.exists());
      }
    
      public void testCreateParentDirs_nonDirectoryParentExists() throws IOException {
        File parent = getTestFile("ascii.txt");
        assertTrue(parent.isFile());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 22.1K bytes
    - Viewed (0)
  10. guava/src/com/google/common/net/InternetDomainName.java

       */
      private InternetDomainName(String name, ImmutableList<String> parts) {
        checkArgument(!parts.isEmpty(), "Cannot create an InternetDomainName with zero parts.");
        this.name = name;
        this.parts = parts;
      }
    
      /**
       * The index in the {@link #parts()} list at which the public suffix begins. For example, for the
       * domain name {@code myblog.blogspot.co.uk}, the value would be 1 (the index of the {@code
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Feb 05 20:47:23 UTC 2024
    - 28K bytes
    - Viewed (0)
Back to top