- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 335 for compare (0.11 sec)
-
guava/src/com/google/common/collect/Ordering.java
* instead (but note that it does not guarantee which tied minimum element is returned). * * @param a value to compare, returned if less than or equal to the rest. * @param b value to compare * @param c value to compare * @param rest values to compare * @throws ClassCastException if the parameters are not <i>mutually comparable</i> under this * ordering. */ @ParametricNullness
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 39.4K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Ordering.java
* instead (but note that it does not guarantee which tied minimum element is returned). * * @param a value to compare, returned if less than or equal to the rest. * @param b value to compare * @param c value to compare * @param rest values to compare * @throws ClassCastException if the parameters are not <i>mutually comparable</i> under this * ordering. */ @ParametricNullness
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 39.4K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/SortedLists.java
/** * A specification for which index to return if the list contains at least one element that * compares as equal to the key. */ enum KeyPresentBehavior { /** * Return the index of any list element that compares as equal to the key. No guarantees are * made as to which index is returned, if more than one element compares as equal to the key. */ ANY_PRESENT { @Override
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 11K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/Helpers.java
assertTrue( comparator + ".compare(" + lesser + ", " + t + ")", comparator.compare(lesser, t) < 0); } assertEquals(comparator + ".compare(" + t + ", " + t + ")", 0, comparator.compare(t, t)); for (int j = i + 1; j < valuesInExpectedOrder.size(); j++) { T greater = valuesInExpectedOrder.get(j); assertTrue( comparator + ".compare(" + greater + ", " + t + ")",
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 17.5K bytes - Viewed (0) -
istioctl/pkg/writer/ztunnel/configdump/policies.go
w := c.tabwriter() zDump := c.ztunnelDump pols := slices.Filter(zDump.Policies, filter.Verify) slices.SortFunc(pols, func(a, b *ZtunnelPolicy) int { if r := cmp.Compare(a.Namespace, b.Namespace); r != 0 { return r } return cmp.Compare(a.Name, b.Name) }) fmt.Fprintln(w, "NAMESPACE\tPOLICY NAME\tACTION\tSCOPE") for _, pol := range pols { fmt.Fprintf(w, "%v\t%v\t%v\t%v\n",
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Fri May 31 21:45:11 UTC 2024 - 2.4K bytes - Viewed (0) -
android/guava/src/com/google/common/primitives/UnsignedLongs.java
* @return a negative value if {@code a} is less than {@code b}; a positive value if {@code a} is * greater than {@code b}; or zero if they are equal */ public static int compare(long a, long b) { return Longs.compare(flip(a), flip(b)); } /** * Returns the least value present in {@code array}, treating values as unsigned. * * @param array a <i>nonempty</i> array of unsigned {@code long} values
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Aug 12 21:04:48 UTC 2024 - 17.6K bytes - Viewed (0) -
android/guava/src/com/google/common/primitives/Booleans.java
* @param b the second {@code boolean} to compare * @return a positive number if only {@code a} is {@code true}, a negative number if only {@code * b} is true, or zero if {@code a == b} */ @InlineMe(replacement = "Boolean.compare(a, b)") public static int compare(boolean a, boolean b) { return Boolean.compare(a, b); } /**
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 19:07:49 UTC 2024 - 20.4K bytes - Viewed (0) -
guava/src/com/google/common/primitives/Booleans.java
* @param b the second {@code boolean} to compare * @return a positive number if only {@code a} is {@code true}, a negative number if only {@code * b} is true, or zero if {@code a == b} */ @InlineMe(replacement = "Boolean.compare(a, b)") public static int compare(boolean a, boolean b) { return Boolean.compare(a, b); } /**
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 19:07:49 UTC 2024 - 20.4K bytes - Viewed (0) -
istioctl/pkg/writer/ztunnel/configdump/connections.go
d := c.ztunnelDump workloads := maps.Values(d.WorkloadState) workloads = slices.SortFunc(workloads, func(a, b WorkloadState) int { if r := cmp.Compare(a.Info.Namespace, b.Info.Namespace); r != 0 { return r } return cmp.Compare(a.Info.Namespace, b.Info.Namespace) }) workloads = slices.FilterInPlace(workloads, func(state WorkloadState) bool {
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Fri May 31 21:45:11 UTC 2024 - 3.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/GeneralRangeTest.java
assertEquals( ORDERING.compare(i, 3) < 0 || (ORDERING.compare(i, 3) == 0 && lBoundType == CLOSED), range.contains(i)); assertEquals( ORDERING.compare(i, 3) > 0 || (ORDERING.compare(i, 3) == 0 && lBoundType == OPEN), range.tooHigh(i)); assertFalse(range.tooLow(i)); } } } public void testDoublyBoundedAgainstRange() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 8.4K bytes - Viewed (0)