Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 1,148 for COMPARE (0.09 sec)

  1. guava/src/com/google/common/collect/ComparisonChain.java

            public ComparisonChain compare(int left, int right) {
              return classify(Ints.compare(left, right));
            }
    
            @Override
            public ComparisonChain compare(long left, long right) {
              return classify(Longs.compare(left, right));
            }
    
            @Override
            public ComparisonChain compare(float left, float right) {
              return classify(Float.compare(left, right));
            }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 21 17:28:11 UTC 2022
    - 11.2K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/ComparisonChain.java

            public ComparisonChain compare(int left, int right) {
              return classify(Ints.compare(left, right));
            }
    
            @Override
            public ComparisonChain compare(long left, long right) {
              return classify(Longs.compare(left, right));
            }
    
            @Override
            public ComparisonChain compare(float left, float right) {
              return classify(Float.compare(left, right));
            }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Jan 24 17:47:51 UTC 2022
    - 9.3K bytes
    - Viewed (0)
  3. src/strings/compare_test.go

    }
    
    func TestCompare(t *testing.T) {
    	for _, tt := range compareTests {
    		cmp := Compare(tt.a, tt.b)
    		if cmp != tt.i {
    			t.Errorf(`Compare(%q, %q) = %v`, tt.a, tt.b, cmp)
    		}
    	}
    }
    
    func TestCompareIdenticalString(t *testing.T) {
    	var s = "Hello Gophers!"
    	if Compare(s, s) != 0 {
    		t.Error("s != s")
    	}
    	if Compare(s, s[:1]) != 1 {
    		t.Error("s > s[:1] failed")
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 07 01:33:55 UTC 2022
    - 2.8K bytes
    - Viewed (0)
  4. platforms/software/resources/src/test/groovy/org/gradle/internal/resource/metadata/ExternalResourceMetaDataCompareTest.groovy

                0 * metaData.getLastModified()
                0 * metaData.getContentLength()
            }
        }
        boolean compare(ExternalResourceMetaData local, ExternalResourceMetaData remote) {
            compare(local, new Factory() {
                def create() { remote }
            })
        }
    
        boolean compare(ExternalResourceMetaData local, Factory<ExternalResourceMetaData> remoteFactory) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  5. test/switch3.go

    	switch m {
    	case nil:
    	case m1: // ERROR "can only compare map m to nil|map can only be compared to nil|cannot compare"
    	default:
    	}
    
    	var a, a1 []int
    	switch a {
    	case nil:
    	case a1: // ERROR "can only compare slice a to nil|slice can only be compared to nil|cannot compare"
    	default:
    	}
    
    	var f, f1 func()
    	switch f {
    	case nil:
    	case f1: // ERROR "can only compare func f to nil|func can only be compared to nil|cannot compare"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 15 19:43:32 UTC 2020
    - 1.2K bytes
    - Viewed (0)
  6. operator/cmd/mesh/manifest-diff.go

    	"istio.io/istio/operator/pkg/compare"
    	"istio.io/istio/operator/pkg/util"
    )
    
    // YAMLSuffix is the suffix of a YAML file.
    const YAMLSuffix = ".yaml"
    
    type manifestDiffArgs struct {
    	// compareDir indicates comparison between directory.
    	compareDir bool
    	// verbose generates verbose output.
    	verbose bool
    	// selectResources constrains the list of resources to compare to only the ones in this list, ignoring all others.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Mar 15 01:18:49 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  7. platforms/ide/ide/src/test/groovy/org/gradle/plugins/ide/internal/tooling/TaskNameComparatorTest.groovy

        @Unroll('compares task names #first and #second')
        def compare() {
            def comparator = new TaskNameComparator()
    
            expect:
            comparator.compare(first, second) < 0
            comparator.compare(second, first) > 0
            comparator.compare(first, first) == 0
            comparator.compare(second, second) == 0
    
            where:
            first | second
            ':t1' | ':t2'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:12 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  8. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/resolveengine/graph/builder/ModuleSelectors.java

                            } else {
                                return Boolean.compare(isDynamicSelector(left), isDynamicSelector(right));
                            }
                        } else {
                            return Boolean.compare(hasLatestSelector(right), hasLatestSelector(left));
                        }
                    } else {
                        return Boolean.compare(right.isFromLock(), left.isFromLock());
                    }
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 8.2K bytes
    - Viewed (0)
  9. src/internal/bytealg/compare_mipsx.s

    //go:build mips || mipsle
    
    #include "go_asm.h"
    #include "textflag.h"
    
    TEXT ยทCompare(SB),NOSPLIT,$0-28
    	MOVW	a_base+0(FP), R3
    	MOVW	b_base+12(FP), R4
    	MOVW	a_len+4(FP), R1
    	MOVW	b_len+16(FP), R2
    	BEQ	R3, R4, samebytes
    	SGTU	R1, R2, R7
    	MOVW	R1, R8
    	CMOVN	R7, R2, R8	// R8 is min(R1, R2)
    
    	ADDU	R3, R8	// R3 is current byte in a, R8 is last byte in a to compare
    loop:
    	BEQ	R3, R8, samebytes
    
    	MOVBU	(R3), R6
    	ADDU	$1, R3
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Nov 06 10:24:44 UTC 2021
    - 1.4K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/Comparators.java

       * @param b second value to compare.
       * @throws ClassCastException if the parameters are not <i>mutually comparable</i> using the given
       *     comparator.
       * @since 30.0
       */
      @ParametricNullness
      public static <T extends @Nullable Object> T max(
          @ParametricNullness T a, @ParametricNullness T b, Comparator<? super T> comparator) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Apr 11 08:42:51 UTC 2024
    - 10.7K bytes
    - Viewed (0)
Back to top