Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for childMapFromSorted (0.24 sec)

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

            sortedEntries.sort(Comparator.comparing(ChildMap.Entry::getPath, PathUtil.getPathComparator(caseSensitivity)));
            return childMapFromSorted(sortedEntries);
        }
    
        public static <T> ChildMap<T> childMapFromSorted(List<ChildMap.Entry<T>> sortedEntries) {
            int size = sortedEntries.size();
            switch (size) {
                case 0:
                    return EmptyChildMap.getInstance();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:34:50 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  2. platforms/core-execution/snapshots/src/test/groovy/org/gradle/internal/snapshot/AbstractFileSystemNodeWithChildrenTest.groovy

            newEntries.add(insertPosition, new ChildMap.Entry<>(path, newChild))
            return ChildMapFactory.childMapFromSorted(newEntries)
        }
    
        ChildMap<CHILD> childrenWithSelectedChildRemoved() {
            def newEntries = childEntries()
            newEntries.remove(indexOfSelectedChild)
            return ChildMapFactory.childMapFromSorted(newEntries)
        }
    
        CHILD getNodeWithIndexOfSelectedChild(ChildMap<CHILD> newChildren) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:34:50 UTC 2023
    - 9.3K bytes
    - Viewed (0)
  3. platforms/core-execution/snapshots/src/main/java/org/gradle/internal/snapshot/AbstractListChildMap.java

            newChildren.set(childIndex, new Entry<>(newPath, newChild));
            return ChildMapFactory.childMapFromSorted(newChildren);
        }
    
        protected ChildMap<T> withRemovedChild(int childIndex) {
            List<Entry<T>> newChildren = new ArrayList<>(entries);
            newChildren.remove(childIndex);
            return ChildMapFactory.childMapFromSorted(newChildren);
        }
    
        @Override
        public boolean equals(Object o) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 23 19:11:25 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  4. platforms/core-execution/snapshots/src/main/java/org/gradle/internal/snapshot/DirectorySnapshot.java

    import java.io.File;
    import java.util.List;
    import java.util.Optional;
    import java.util.concurrent.atomic.AtomicBoolean;
    import java.util.stream.Collectors;
    
    import static org.gradle.internal.snapshot.ChildMapFactory.childMapFromSorted;
    import static org.gradle.internal.snapshot.SnapshotVisitResult.CONTINUE;
    
    /**
     * A snapshot of an existing directory hierarchy.
     *
     * Includes snapshots of any child element and the Merkle tree hash.
     */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 23 13:19:32 UTC 2023
    - 9.2K bytes
    - Viewed (0)
  5. platforms/core-execution/snapshots/src/test/groovy/org/gradle/internal/snapshot/AbstractIncompleteFileSystemNodeTest.groovy

            def entry1 = new ChildMap.Entry<FileSystemNode>(path1, child1)
            def entry2 = new ChildMap.Entry<FileSystemNode>(path2, child2)
            return compared < 0 ? ChildMapFactory.childMapFromSorted([entry1, entry2]) : ChildMapFactory.childMapFromSorted([entry2, entry1])
        }
    
        @Override
        FileSystemNode mockChild() {
            Mock(FileSystemNode)
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:34:50 UTC 2023
    - 13.3K bytes
    - Viewed (0)
  6. subprojects/core/src/main/java/org/gradle/execution/plan/ValuedVfsHierarchy.java

                @Override
                public ValuedVfsHierarchy<T> handleAsAncestorOfChild(String childPath, ValuedVfsHierarchy<T> child) {
                    ChildMap<ValuedVfsHierarchy<T>> singletonChild = ChildMapFactory.childMapFromSorted(ImmutableList.of(
                        new ChildMap.Entry<>(location.pathToChild(childPath), child)
                    ));
    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