Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 474 for compares (0.04 sec)

  1. guava-tests/test/com/google/common/collect/ImmutableSetMultimapTest.java

          this.string = string;
        }
    
        @Override
        public int hashCode() {
          throw new UnsupportedOperationException();
        }
    
        @Override
        public int compareTo(HashHostileComparable o) {
          return string.compareTo(o.string);
        }
      }
    
      public void testSortedBuilderWithExpectedValuesPerKeyPositive() {
        ImmutableSetMultimap.Builder<String, HashHostileComparable> builder =
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 28.7K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/GeneratedMonitorTest.java

            methods,
            new Comparator<Method>() {
              @Override
              public int compare(Method m1, Method m2) {
                int nameComparison = m1.getName().compareTo(m2.getName());
                if (nameComparison != 0) {
                  return nameComparison;
                } else {
                  return Integer.compare(m1.getParameterTypes().length, m2.getParameterTypes().length);
                }
              }
            });
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 27K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/ByFunctionOrdering.java

        this.function = checkNotNull(function);
        this.ordering = checkNotNull(ordering);
      }
    
      @Override
      public int compare(@ParametricNullness F left, @ParametricNullness F right) {
        return ordering.compare(function.apply(left), function.apply(right));
      }
    
      @Override
      public boolean equals(@Nullable Object object) {
        if (object == this) {
          return true;
        }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 2.3K bytes
    - Viewed (0)
  4. clause/from_test.go

    							},
    						}, {
    							Type:  clause.LeftJoin,
    							Table: clause.Table{Name: "companies"},
    							Using: []string{"company_name"},
    						},
    					},
    				},
    			},
    			"SELECT * FROM `users` INNER JOIN `articles` ON `articles`.`id` = `users`.`id` LEFT JOIN `companies` USING (`company_name`)", nil,
    		},
    	}
    
    	for idx, result := range results {
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Wed Jul 15 02:25:10 UTC 2020
    - 1.9K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/CompoundOrdering.java

        this.comparators =
            Iterables.toArray(comparators, (Comparator<? super T>[]) new Comparator<?>[0]);
      }
    
      @Override
      public int compare(@ParametricNullness T left, @ParametricNullness T right) {
        for (int i = 0; i < comparators.length; i++) {
          int result = comparators[i].compare(left, right);
          if (result != 0) {
            return result;
          }
        }
        return 0;
      }
    
      @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jun 04 13:03:16 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  6. compat/maven-compat/src/main/java/org/apache/maven/repository/metadata/MetadataGraphVertex.java

            }
    
            if (
            /* s1 != null && */ s2 == null) {
                return 1;
            }
    
            return s1.compareTo(s2);
        }
    
        // ---------------------------------------------------------------------
        @Override
        public int compareTo(MetadataGraphVertex vertex) {
            if (vertex == null || vertex.getMd() == null) {
                return 1;
            }
    
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 5K bytes
    - Viewed (0)
  7. cmd/metrics-v2_test.go

    	}
    
    	// Deterministic ordering
    	slices.SortFunc(capitalPutObjects, func(a MetricV2, b MetricV2) int {
    		le1 := a.VariableLabels["le"]
    		le2 := a.VariableLabels["le"]
    		return strings.Compare(le1, le2)
    	})
    	if le := capitalPutObjects[0].VariableLabels["le"]; le != "0.500" {
    		t.Errorf("Expected le='0.050' api=PutObject metrics but got '%v'", le)
    	}
    	if value := capitalPutObjects[0].Value; value != 1 {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Sun Mar 30 00:56:02 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/TopKSelector.java

          buffer[bufferSize++] = elem;
          // uncheckedCastNullableTToT is safe because bufferSize > 0.
          if (comparator.compare(elem, uncheckedCastNullableTToT(threshold)) > 0) {
            threshold = elem;
          }
          // uncheckedCastNullableTToT is safe because bufferSize > 0.
        } else if (comparator.compare(elem, uncheckedCastNullableTToT(threshold)) < 0) {
          // Otherwise, we can ignore elem; we've seen k better elements.
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 31 13:15:26 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  9. cmd/batch-job-common-types_gen.go

    					return
    				}
    			}
    		case "Compress":
    			if dc.IsNil() {
    				err = dc.ReadNil()
    				if err != nil {
    					err = msgp.WrapError(err, "Compress")
    					return
    				}
    				z.Compress = nil
    			} else {
    				if z.Compress == nil {
    					z.Compress = new(bool)
    				}
    				*z.Compress, err = dc.ReadBool()
    				if err != nil {
    					err = msgp.WrapError(err, "Compress")
    					return
    				}
    			}
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Sat Dec 02 10:51:33 UTC 2023
    - 21.9K bytes
    - Viewed (0)
  10. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/resolver/conflict/NewestConflictResolver.java

    /**
     * Resolves conflicting artifacts by always selecting the newest declaration. Newest is defined as the
     * declaration whose version is greater according to <code>ArtifactVersion.compareTo</code>.
     *
     * @see ArtifactVersion#compareTo
     * @since 3.0
     */
    @Named("newest")
    @Singleton
    @Deprecated
    public class NewestConflictResolver implements ConflictResolver {
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 2.2K bytes
    - Viewed (0)
Back to top