Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 1,407 for Comparer (0.32 sec)

  1. src/internal/fmtsort/sort.go

    //
    //   - when applicable, nil compares low
    //   - ints, floats, and strings order by <
    //   - NaN compares less than non-NaN floats
    //   - bool compares false before true
    //   - complex compares real, then imag
    //   - pointers compare by machine address
    //   - channel values compare by machine address
    //   - structs compare each field in turn
    //   - arrays compare each element in turn.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 19:31:45 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  2. pkg/scheduler/schedule_one_test.go

    				"c": framework.NewStatus(framework.UnschedulableAndUnresolvable, fmt.Sprintf("FakeExtender: node %q failed and unresolvable", "c")),
    			},
    		},
    	}
    
    	cmpOpts := []cmp.Option{
    		cmp.Comparer(func(s1 framework.Status, s2 framework.Status) bool {
    			return s1.Code() == s2.Code() && reflect.DeepEqual(s1.Reasons(), s2.Reasons())
    		}),
    	}
    
    	for _, tt := range tests {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:20:55 UTC 2024
    - 128.1K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. src/internal/gover/gover.go

    // compared using Compare.
    // If x and y compare equal, Max returns x.
    func Max(x, y string) string {
    	if Compare(x, y) < 0 {
    		return y
    	}
    	return x
    }
    
    // IsLang reports whether v denotes the overall Go language version
    // and not a specific release. Starting with the Go 1.21 release, "1.x" denotes
    // the overall language version; the first release is "1.x.0".
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 06 23:20:32 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  6. 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: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  7. 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: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  8. operator/cmd/mesh/manifest-diff.go

    }
    
    func manifestDiffCmd(diffArgs *manifestDiffArgs) *cobra.Command {
    	cmd := &cobra.Command{
    		Use:   "diff <file|dir> <file|dir>",
    		Short: "Compare manifests and generate diff",
    		Long: "The diff subcommand compares manifests from two files or directories. The output is a list of\n" +
    			"changed paths with the value changes shown as OLD-VALUE -> NEW-VALUE.\n" +
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Mar 15 01:18:49 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  9. pilot/test/util/diff.go

    // It is set using the environment variable REFRESH_GOLDEN.
    func Refresh() bool {
    	return env.Register("REFRESH_GOLDEN", false, "").Get()
    }
    
    // Compare compares two byte slices. It returns an error with a
    // contextual diff if they are not equal.
    func Compare(content, golden []byte) error {
    	data := strings.TrimSpace(string(content))
    	expected := strings.TrimSpace(string(golden))
    
    	if data != expected {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Mar 05 08:53:20 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/mod/semver/semver.go

    }
    
    // Max canonicalizes its arguments and then returns the version string
    // that compares greater.
    //
    // Deprecated: use [Compare] instead. In most cases, returning a canonicalized
    // version is not expected or desired.
    func Max(v, w string) string {
    	v = Canonical(v)
    	w = Canonical(w)
    	if Compare(v, w) > 0 {
    		return v
    	}
    	return w
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jul 12 20:38:21 UTC 2023
    - 8.9K bytes
    - Viewed (0)
Back to top