Search Options

Results per page
Sort
Preferred Languages
Advance

Results 151 - 160 of 394 for Compare (0.14 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/google/SortedMapGenerators.java

        }
    
        @Override
        public Iterable<Entry<String, Integer>> order(List<Entry<String, Integer>> insertionOrder) {
          return new Ordering<Entry<String, Integer>>() {
            @Override
            public int compare(Entry<String, Integer> left, Entry<String, Integer> right) {
              return left.getKey().compareTo(right.getKey());
            }
          }.sortedCopy(insertionOrder);
        }
    
        @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  2. tests/update_test.go

    	sort.Slice(result.Languages, func(i, j int) bool {
    		return strings.Compare(result.Languages[i].Code, result.Languages[j].Code) > 0
    	})
    
    	sort.Slice(result.Toys, func(i, j int) bool {
    		return result.Toys[i].ID < result.Toys[j].ID
    	})
    
    	sort.Slice(result2.Languages, func(i, j int) bool {
    		return strings.Compare(result2.Languages[i].Code, result2.Languages[j].Code) > 0
    	})
    
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Dec 04 03:50:58 UTC 2023
    - 30.3K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/graph/ElementOrderTest.java

      @Test
      public void customComparator() {
        Comparator<NonComparableSuperClass> comparator =
            new Comparator<NonComparableSuperClass>() {
              @Override
              public int compare(NonComparableSuperClass left, NonComparableSuperClass right) {
                return left.value.compareTo(right.value);
              }
            };
    
        MutableGraph<NonComparableSuperClass> graph =
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 10 19:45:10 UTC 2022
    - 8.1K bytes
    - Viewed (0)
  4. docs/en/docs/tutorial/path-params.md

    <img src="/img/tutorial/path-params/image03.png">
    
    ### Working with Python *enumerations*
    
    The value of the *path parameter* will be an *enumeration member*.
    
    #### Compare *enumeration members*
    
    You can compare it with the *enumeration member* in your created enum `ModelName`:
    
    ```Python hl_lines="17"
    {!../../docs_src/path_params/tutorial005.py!}
    ```
    
    #### Get the *enumeration value*
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  5. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSortedMap.java

        checkNotNull(fromKey);
        checkNotNull(toKey);
        checkArgument(comparator.compare(fromKey, toKey) <= 0);
        return newView(sortedDelegate.subMap(fromKey, toKey));
      }
    
      ImmutableSortedMap<K, V> subMap(K fromKey, boolean fromInclusive, K toKey, boolean toInclusive) {
        checkNotNull(fromKey);
        checkNotNull(toKey);
        checkArgument(comparator.compare(fromKey, toKey) <= 0);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 27 19:19:19 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  6. compat/maven-compat/src/main/java/org/apache/maven/repository/DefaultMirrorSelector.java

         * <li>{@code repo,repo1} = {@code repo} or {@code repo1},</li>
         * <li>{@code *,!repo1} = everything except {@code repo1}.</li>
         * </ul>
         *
         * @param originalRepository to compare for a match.
         * @param pattern used for match.
         * @return true if the repository is a match to this pattern.
         */
        static boolean matchPattern(ArtifactRepository originalRepository, String pattern) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 8K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/Range.java

        static final Ordering<?> INSTANCE = new RangeLexOrdering();
    
        @Override
        public int compare(Range<?> left, Range<?> right) {
          return ComparisonChain.start()
              .compare(left.lowerBound, right.lowerBound)
              .compare(left.upperBound, right.upperBound)
              .result();
        }
    
        private static final long serialVersionUID = 0;
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 17:21:56 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/CollectionBenchmarkSampleData.java

        }
    
        @Override
        public int hashCode() {
          return hash;
        }
    
        @Override
        public int compareTo(Element that) {
          return Integer.compare(hash, that.hash);
        }
    
        @Override
        public String toString() {
          return String.valueOf(hash);
        }
      }
    
      static class SlowElement extends Element {
        SlowElement(int hash) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  9. compat/maven-embedder/src/test/java/org/apache/maven/cli/CLIManagerDocumentationTest.java

     */
    class CLIManagerDocumentationTest {
        private static final String LS = System.lineSeparator();
    
        private static class OptionComparator implements Comparator<Option> {
            public int compare(Option opt1, Option opt2) {
                String s1 = opt1.getOpt() != null ? opt1.getOpt() : opt1.getLongOpt();
                String s2 = opt2.getOpt() != null ? opt2.getOpt() : opt2.getLongOpt();
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4K bytes
    - Viewed (0)
  10. istioctl/pkg/tag/tag.go

    		if k.tag != "" {
    			delete(rawTags, uniqTag{revision: k.revision})
    		}
    	}
    	tags := slices.SortFunc(maps.Values(rawTags), func(a, b tagDescription) int {
    		if r := cmp.Compare(a.Revision, b.Revision); r != 0 {
    			return r
    		}
    		return cmp.Compare(a.Tag, b.Tag)
    	})
    
    	switch outputFormat {
    	case util.JSONFormat, util.YamlFormat:
    		return printJSONYAML(writer, tags, outputFormat)
    	case util.TableFormat:
    	default:
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Mon Jul 22 15:40:30 UTC 2024
    - 16.5K bytes
    - Viewed (0)
Back to top