- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for childMapFromSorted (0.54 sec)
-
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) -
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) -
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) -
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)