- Sort Score
- Result 10 results
- Languages All
Results 151 - 160 of 317 for COMPARE (0.05 sec)
-
android/guava-testlib/src/com/google/common/collect/testing/google/SortedMapGenerators.java
} @Override public Iterable<Entry<String, Integer>> order(List<Entry<String, Integer>> insertionOrder) { return new Ordering<Entry<String, Integer>>() { @Override public int compare(Entry<String, Integer> left, Entry<String, Integer> right) { return left.getKey().compareTo(right.getKey()); } }.sortedCopy(insertionOrder); } @Override
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 4.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/graph/ElementOrderTest.java
@Test public void customComparator() { Comparator<NonComparableSuperClass> comparator = new Comparator<NonComparableSuperClass>() { @Override public int compare(NonComparableSuperClass left, NonComparableSuperClass right) { return left.value.compareTo(right.value); } }; MutableGraph<NonComparableSuperClass> graph =
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 10 19:45:10 UTC 2022 - 8.1K bytes - Viewed (0) -
tests/update_test.go
sort.Slice(result.Languages, func(i, j int) bool { return strings.Compare(result.Languages[i].Code, result.Languages[j].Code) > 0 }) sort.Slice(result.Toys, func(i, j int) bool { return result.Toys[i].ID < result.Toys[j].ID }) sort.Slice(result2.Languages, func(i, j int) bool { return strings.Compare(result2.Languages[i].Code, result2.Languages[j].Code) > 0 })
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Mon Dec 04 03:50:58 UTC 2023 - 30.3K bytes - Viewed (0) -
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSortedMap.java
checkNotNull(fromKey); checkNotNull(toKey); checkArgument(comparator.compare(fromKey, toKey) <= 0); return newView(sortedDelegate.subMap(fromKey, toKey)); } ImmutableSortedMap<K, V> subMap(K fromKey, boolean fromInclusive, K toKey, boolean toInclusive) { checkNotNull(fromKey); checkNotNull(toKey); checkArgument(comparator.compare(fromKey, toKey) <= 0);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Feb 27 19:19:19 UTC 2024 - 16.4K bytes - Viewed (0) -
compat/maven-compat/src/main/java/org/apache/maven/repository/DefaultMirrorSelector.java
* <li>{@code repo,repo1} = {@code repo} or {@code repo1},</li> * <li>{@code *,!repo1} = everything except {@code repo1}.</li> * </ul> * * @param originalRepository to compare for a match. * @param pattern used for match. * @return true if the repository is a match to this pattern. */ static boolean matchPattern(ArtifactRepository originalRepository, String pattern) {
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 8K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Range.java
static final Ordering<?> INSTANCE = new RangeLexOrdering(); @Override public int compare(Range<?> left, Range<?> right) { return ComparisonChain.start() .compare(left.lowerBound, right.lowerBound) .compare(left.upperBound, right.upperBound) .result(); } private static final long serialVersionUID = 0; }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 16 17:21:56 UTC 2024 - 27.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/CollectionBenchmarkSampleData.java
} @Override public int hashCode() { return hash; } @Override public int compareTo(Element that) { return Integer.compare(hash, that.hash); } @Override public String toString() { return String.valueOf(hash); } } static class SlowElement extends Element { SlowElement(int hash) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 4.1K bytes - Viewed (0) -
compat/maven-embedder/src/test/java/org/apache/maven/cli/CLIManagerDocumentationTest.java
*/ class CLIManagerDocumentationTest { private static final String LS = System.lineSeparator(); private static class OptionComparator implements Comparator<Option> { public int compare(Option opt1, Option opt2) { String s1 = opt1.getOpt() != null ? opt1.getOpt() : opt1.getLongOpt(); String s2 = opt2.getOpt() != null ? opt2.getOpt() : opt2.getLongOpt();
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 4K bytes - Viewed (0) -
.github/ISSUE_TEMPLATE/feature_addition_request.yaml
Guava's main yardstick for evaluating proposed features can be summed up as [utility times ubiquity](https://github.com/google/guava/wiki/PhilosophyExplained#utility-times-ubiquity). #### Utility: compare with alternatives There is always *some* alternative to adding a new feature to Guava, even if it's just forking Guava yourself.
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Nov 17 18:47:47 UTC 2023 - 5.8K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/MapGenerators.java
} @Override public Iterable<Entry<AnEnum, String>> order(List<Entry<AnEnum, String>> insertionOrder) { return new Ordering<Entry<AnEnum, String>>() { @Override public int compare(Entry<AnEnum, String> left, Entry<AnEnum, String> right) { return left.getKey().compareTo(right.getKey()); } }.sortedCopy(insertionOrder); } }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 8.5K bytes - Viewed (0)