- Sort Score
- Num 10 results
- Language All
Results 141 - 150 of 177 for IsSorted (0.05 seconds)
-
android/guava/src/com/google/common/graph/Network.java
* * <ul> * <li>directed graphs * <li>undirected graphs * <li>graphs that do/don't allow parallel edges * <li>graphs that do/don't allow self-loops * <li>graphs whose nodes/edges are insertion-ordered, sorted, or unordered * <li>graphs whose edges are <a * href="https://github.com/google/guava/wiki/GraphsExplained#uniqueness">unique</a> objects * </ul> * * <h3>Building a {@code Network}</h3> *
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Oct 07 15:57:03 GMT 2025 - 17.7K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/RangeTest.java
Range<Integer> range = Range.closed(3, 5); assertTrue(range.containsAll(asList(3, 3, 4, 5))); assertFalse(range.containsAll(asList(3, 3, 4, 5, 6))); // We happen to know that natural-order sorted sets use a different code // path, so we test that separately assertTrue(range.containsAll(ImmutableSortedSet.of(3, 3, 4, 5))); assertTrue(range.containsAll(ImmutableSortedSet.of(3)));
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 24.2K bytes - Click Count (0) -
cmd/erasure-metadata.go
if partNumber == part.Number { fi.Parts[i] = partInfo return } } // Proceed to include new part info. fi.Parts = append(fi.Parts, partInfo) // Parts in FileInfo should be in sorted order by part number. sort.Slice(fi.Parts, func(i, j int) bool { return fi.Parts[i].Number < fi.Parts[j].Number }) } // ObjectToPartOffset - translate offset of an object to offset of its individual part.Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 21.3K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/Range.java
} } @SuppressWarnings("unchecked") // this method may throw CCE static int compareOrThrow(Comparable left, Comparable right) { return left.compareTo(right); } /** Needed to serialize sorted collections of Ranges. */ private static final class RangeLexOrdering extends Ordering<Range<?>> implements Serializable { static final Ordering<?> INSTANCE = new RangeLexOrdering(); @OverrideCreated: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Sep 22 18:35:44 GMT 2025 - 28K bytes - Click Count (0) -
cmd/xl-storage-format-v2.go
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 65.6K bytes - Click Count (1) -
src/archive/tar/writer.go
isGlobal := hdr.Typeflag == TypeXGlobalHeader if len(paxHdrs) > 0 || isGlobal { // Write each record to a buffer. var buf strings.Builder // Sort keys for deterministic ordering. for _, k := range slices.Sorted(maps.Keys(paxHdrs)) { rec, err := formatPAXRecord(k, paxHdrs[k]) if err != nil { return err } buf.WriteString(rec) } // Write the extended header file. var name string
Created: Tue Dec 30 11:13:12 GMT 2025 - Last Modified: Mon Feb 03 16:38:43 GMT 2025 - 19.7K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/MinMaxPriorityQueue.java
* Returns the index that {@code actualLastElement} now resides in. * * <p>Since the last element of the array is actually in the middle of the sorted structure, a * childless aunt node could be smaller, which would corrupt the invariant if this element * becomes the new parent of the aunt node. In that case, we first switch the last element withCreated: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Sep 22 18:35:44 GMT 2025 - 33.9K bytes - Click Count (0) -
src/cmd/api/main_test.go
// The satisfied tags are derived from context but only those that // matter (the ones listed in the tags argument plus GOOS and GOARCH) are used. // The tags list, which came from go/build's Package.AllTags, // is known to be sorted. func tagKey(dir string, context *build.Context, tags []string) string { ctags := map[string]bool{ context.GOOS: true, context.GOARCH: true, } if context.CgoEnabled { ctags["cgo"] = true }
Created: Tue Dec 30 11:13:12 GMT 2025 - Last Modified: Thu Feb 20 03:25:33 GMT 2025 - 31.4K bytes - Click Count (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/PluginUpgradeStrategy.java
} /** * Cleans up the temporary directory. */ private void cleanupTempDirectory(Path tempDir) { try { Files.walk(tempDir) .sorted(Comparator.reverseOrder()) .map(Path::toFile) .forEach(File::delete); } catch (Exception e) { // Best effort cleanup - don't fail the whole operation }Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Tue Nov 18 18:03:26 GMT 2025 - 37K bytes - Click Count (0) -
cmd/utils.go
} type ordered interface { ~int | ~int8 | ~int16 | ~int32 | ~int64 | ~uint | ~uint8 | ~uint16 | ~uint32 | ~uint64 | ~uintptr | ~float32 | ~float64 | string } // mapKeysSorted returns the map keys as a sorted slice. func mapKeysSorted[Map ~map[K]V, K ordered, V any](m Map) []K { res := make([]K, 0, len(m)) for k := range m { res = append(res, k) } slices.Sort(res) return resCreated: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 33K bytes - Click Count (0)