Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 29 for ChildMap (0.14 sec)

  1. platforms/core-execution/snapshots/src/main/java/org/gradle/internal/snapshot/ChildMap.java

     * limitations under the License.
     */
    
    package org.gradle.internal.snapshot;
    
    import java.util.Optional;
    import java.util.stream.Stream;
    
    public interface ChildMap<T> {
    
        boolean isEmpty();
    
        int size();
    
        Stream<Entry<T>> stream();
    
        <RESULT> RESULT withNode(VfsRelativePath targetPath, CaseSensitivity caseSensitivity, NodeHandler<T, RESULT> handler);
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 23 13:19:32 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  2. platforms/core-execution/snapshots/src/main/java/org/gradle/internal/snapshot/ChildMapFactory.java

        public static <T> ChildMap<T> childMap(CaseSensitivity caseSensitivity, Collection<ChildMap.Entry<T>> entries) {
            List<ChildMap.Entry<T>> sortedEntries = new ArrayList<>(entries);
            sortedEntries.sort(Comparator.comparing(ChildMap.Entry::getPath, PathUtil.getPathComparator(caseSensitivity)));
            return childMapFromSorted(sortedEntries);
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:34:50 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  3. platforms/core-execution/snapshots/src/main/java/org/gradle/internal/snapshot/SingletonChildMap.java

                public ChildMap<T> withReplacedChild(T newChild) {
                    return withReplacedChild(entry.getPath(), newChild);
                }
    
                @Override
                public ChildMap<T> withReplacedChild(String newChildPath, T newChild) {
                    return SingletonChildMap.this.withReplacedChild(newChildPath, newChild);
                }
    
                @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 23 13:19:32 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  4. platforms/core-execution/snapshots/src/test/groovy/org/gradle/internal/snapshot/AbstractFileSystemNodeWithChildrenTest.groovy

            }
        }
    
        ChildMap<CHILD> createChildren(List<String> pathsToParent) {
            return ChildMapFactory.childMapFromSorted(pathsToParent.stream()
                .sorted(PathUtil.getPathComparator(CASE_SENSITIVE))
                .map { childPath -> new ChildMap.Entry(childPath, mockChild()) }
                .collect(Collectors.toList()))
        }
    
        ChildMap<CHILD> childrenWithSelectedChildReplacedBy(CHILD replacement) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:34:50 UTC 2023
    - 9.3K bytes
    - Viewed (0)
  5. platforms/core-execution/snapshots/src/main/java/org/gradle/internal/snapshot/AbstractStorePathRelationshipHandler.java

            ChildMap.Entry<T> sibling = new ChildMap.Entry<>(siblingPath, handler.createChild());
            ChildMap<T> newChildren = ChildMapFactory.childMap(caseSensitivity, newChild, sibling);
            return withReplacedChild(commonPrefix, handler.createNodeFromChildren(newChildren));
        }
    
        @Override
        public ChildMap<T> handleUnrelatedToAnyChild(VfsRelativePath targetPath) {
            String path = targetPath.getAsString();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:34:50 UTC 2023
    - 3K bytes
    - Viewed (0)
  6. platforms/core-execution/snapshots/src/main/java/org/gradle/internal/snapshot/AbstractInvalidateChildHandler.java

        private final ChildMap.InvalidationHandler<T, RESULT> handler;
    
        public AbstractInvalidateChildHandler(ChildMap.InvalidationHandler<T, RESULT> handler) {
            this.handler = handler;
        }
    
        public abstract ChildMap<RESULT> getChildMap();
    
        public abstract ChildMap<RESULT> withReplacedChild(RESULT newChild);
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:34:50 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  7. platforms/core-execution/snapshots/src/main/java/org/gradle/internal/snapshot/AbstractListChildMap.java

                    }
    
                    @Override
                    public ChildMap<RESULT> withReplacedChild(RESULT newChild) {
                        return withReplacedChild(childPath, newChild);
                    }
    
                    @Override
                    public ChildMap<RESULT> withReplacedChild(String newChildPath, RESULT newChild) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 23 19:11:25 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  8. platforms/core-execution/snapshots/src/main/java/org/gradle/internal/snapshot/AbstractIncompleteFileSystemNode.java

    import java.util.stream.Stream;
    
    public abstract class AbstractIncompleteFileSystemNode implements FileSystemNode {
        protected final ChildMap<FileSystemNode> children;
    
        @SuppressWarnings("unchecked")
        public AbstractIncompleteFileSystemNode(ChildMap<? extends FileSystemNode> children) {
            this.children = (ChildMap<FileSystemNode>) children;
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:34:50 UTC 2023
    - 6.5K bytes
    - Viewed (0)
  9. platforms/core-execution/snapshots/src/main/java/org/gradle/internal/snapshot/DirectorySnapshot.java

        private final ChildMap<FileSystemLocationSnapshot> children;
        private final HashCode contentHash;
    
        public DirectorySnapshot(String absolutePath, String name, AccessType accessType, HashCode contentHash, List<FileSystemLocationSnapshot> children) {
            this(absolutePath, name, accessType, contentHash, childMapFromSorted(children.stream()
                .map(it -> new ChildMap.Entry<>(it.getName(), it))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 23 13:19:32 UTC 2023
    - 9.2K bytes
    - Viewed (0)
  10. subprojects/core/src/main/java/org/gradle/execution/plan/ValuedVfsHierarchy.java

        private final ChildMap<ValuedVfsHierarchy<T>> children;
        private final CaseSensitivity caseSensitivity;
    
        public static <T> ValuedVfsHierarchy<T> emptyHierarchy(CaseSensitivity caseSensitivity) {
            return new ValuedVfsHierarchy<>(PersistentList.of(), EmptyChildMap.getInstance(), caseSensitivity);
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 28 17:23:29 UTC 2022
    - 7.8K bytes
    - Viewed (0)
Back to top