- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 52 for Comparison (0.3 seconds)
-
android/guava-tests/test/com/google/common/util/concurrent/ServiceTest.java
import org.jspecify.annotations.NullUnmarked; /** Unit tests for {@link Service} */ @NullUnmarked @GwtIncompatible @J2ktIncompatible public class ServiceTest extends TestCase { /** Assert on the comparison ordering of the State enum since we guarantee it. */ public void testStateOrdering() { // List every valid (direct) state transition. assertLessThan(NEW, STARTING); assertLessThan(NEW, TERMINATED);Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Mar 07 02:20:33 GMT 2026 - 2.1K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/ServiceTest.java
import org.jspecify.annotations.NullUnmarked; /** Unit tests for {@link Service} */ @NullUnmarked @GwtIncompatible @J2ktIncompatible public class ServiceTest extends TestCase { /** Assert on the comparison ordering of the State enum since we guarantee it. */ public void testStateOrdering() { // List every valid (direct) state transition. assertLessThan(NEW, STARTING); assertLessThan(NEW, TERMINATED);Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Mar 07 02:20:33 GMT 2026 - 2.1K bytes - Click Count (0) -
src/cmd/asm/internal/arch/arm64.go
// IsARM64ADR reports whether the op (as defined by an arm64.A* constant) is // one of the comparison instructions that require special handling. func IsARM64ADR(op obj.As) bool { switch op { case arm64.AADR, arm64.AADRP: return true } return false } // IsARM64CMP reports whether the op (as defined by an arm64.A* constant) is // one of the comparison instructions that require special handling. func IsARM64CMP(op obj.As) bool {
Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Fri Mar 20 17:02:17 GMT 2026 - 6K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/dict/stopwords/StopwordsItemTest.java
assertTrue(item1.equals(item2)); } @Test public void test_equals_withNullInput() { // Test equals with null input - should not throw, uses null-safe comparison StopwordsItem item1 = new StopwordsItem(1, null); StopwordsItem item2 = new StopwordsItem(2, null); StopwordsItem item3 = new StopwordsItem(1, "word");
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 11.4K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/dict/protwords/ProtwordsItemTest.java
assertTrue(item2.equals(item1)); } @Test public void test_equals_withNullInput() { // Test equals with null input - should not throw, uses null-safe comparison ProtwordsItem item1 = new ProtwordsItem(1, null); ProtwordsItem item2 = new ProtwordsItem(2, null); ProtwordsItem item3 = new ProtwordsItem(1, "word");
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 10.7K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/idn/IdnaMappingTable.kt
val b1 = this[index + 1].code return (b0 shl 7) + b1 } /** * An extremely generic binary search that doesn't know what data it's searching over. The caller * provides indexes and a comparison function, and this calls that function iteratively. * * @return the index of the match. If no match is found this is `(-1 - insertionPoint)`, where the * inserting the element at `insertionPoint` will retain sorted order.
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 9K bytes - Click Count (0) -
guava/src/com/google/common/collect/Collections2.java
int permutations = 1; int n = 1; int r = 1; while (n < sortedInputList.size()) { int comparison = comparator.compare(sortedInputList.get(n - 1), sortedInputList.get(n)); if (comparison < 0) { // We move to the next non-repeated element. permutations = IntMath.saturatedMultiply(permutations, IntMath.binomial(n, r)); r = 0;Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Mar 08 16:16:42 GMT 2026 - 23K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/query/QueryCommandTemplateMethodTest.java
(field, boost) -> QueryBuilders.matchQuery(field, "test").boost(boost), (field, text, boost) -> QueryBuilders.matchQuery(field, text).boost(boost)); // Manual implementation (for comparison) QueryBuilder result2; context2.addFieldLog("title", "test"); context2.addHighlightedQuery("test"); if (Constants.DEFAULT_FIELD.equals("title")) {
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 12.5K bytes - Click Count (0) -
android/guava/src/com/google/common/cache/CacheBuilder.java
* * <p><b>Note:</b> by default, the returned cache uses equality comparisons (the {@link * Object#equals equals} method) to determine equality for keys or values. However, if {@link * #weakKeys} was specified, the cache uses identity ({@code ==}) comparisons instead for keys. * Likewise, if {@link #weakValues} or {@link #softValues} was specified, the cache uses identity * comparisons for values. *Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Feb 23 13:13:59 GMT 2026 - 52K bytes - Click Count (0) -
android/guava/src/com/google/common/primitives/Floats.java
if (array[i] == target) { return i; } } return -1; } /** * Returns the least value present in {@code array}, using the same rules of comparison as {@link * Math#min(float, float)}. * * @param array a <i>nonempty</i> array of {@code float} values * @return the value present in {@code array} that is less than or equal to every other value in
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 23 16:38:16 GMT 2026 - 25.6K bytes - Click Count (0)