Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 507 for comparable (0.09 sec)

  1. android/guava-tests/benchmark/com/google/common/base/AsciiBenchmark.java

      @Param boolean noWorkToDo;
    
      Random random;
      String testString;
    
      @BeforeExperiment
      void setUp() {
        random = new Random(0xdeadbeef); // fix the seed so results are comparable across runs
    
        int nonAlpha = size / nonAlphaRatio;
        int alpha = size - nonAlpha;
    
        List<Character> chars = Lists.newArrayListWithCapacity(size);
        for (int i = 0; i < alpha; i++) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 4.8K bytes
    - Viewed (0)
  2. compat/maven-compat/src/main/java/org/apache/maven/artifact/ArtifactStatus.java

    package org.apache.maven.artifact;
    
    import java.util.HashMap;
    import java.util.Map;
    
    /**
     * Type safe enumeration for the artifact status field.
     *
     */
    @Deprecated
    public final class ArtifactStatus implements Comparable<ArtifactStatus> {
        /**
         * No trust - no information about status.
         */
        public static final ArtifactStatus NONE = new ArtifactStatus("none", 0);
    
        /**
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3K bytes
    - Viewed (0)
  3. guava/src/com/google/common/math/ToDoubleRounder.java

     * a {@link RoundingMode}.
     */
    @GwtIncompatible
    @ElementTypesAreNonnullByDefault
    abstract class ToDoubleRounder<X extends Number & Comparable<X>> {
      /**
       * Returns x rounded to either the greatest double less than or equal to the precise value of x,
       * or the least double greater than or equal to the precise value of x.
       */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Feb 07 17:50:39 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/testers/SortedMapNavigationTester.java

        if (comparator == null) {
          comparator =
              new Comparator<K>() {
                @SuppressWarnings("unchecked")
                @Override
                public int compare(K o1, K o2) {
                  return ((Comparable) o1).compareTo(o2);
                }
              };
        }
        Iterator<Entry<K, V>> entryItr = navigableMap.entrySet().iterator();
        Entry<K, V> prevEntry = entryItr.next();
        while (entryItr.hasNext()) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

              .put(ClassToInstanceMap.class, ImmutableClassToInstanceMap.builder().build())
              .put(ImmutableClassToInstanceMap.class, ImmutableClassToInstanceMap.builder().build())
              .put(Comparable.class, ByToString.INSTANCE)
              .put(Comparator.class, AlwaysEqual.INSTANCE)
              .put(Ordering.class, AlwaysEqual.INSTANCE)
              .put(Range.class, Range.all())
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 20.8K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/CollectionBenchmarkSampleData.java

        return set;
      }
    
      private Element newElement() {
        int value = random.nextInt();
        return isUserTypeFast ? new Element(value) : new SlowElement(value);
      }
    
      static class Element implements Comparable<Element> {
        final int hash;
    
        Element(int hash) {
          this.hash = hash;
        }
    
        @Override
        public boolean equals(@Nullable Object obj) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/ImmutableSortedMultisetTest.java

        when((Comparator<Comparable<String>>) toCopy.comparator())
            .thenReturn(Ordering.<Comparable<String>>natural());
        when(toCopy.entrySet()).thenReturn(entrySet);
        ImmutableSortedMultiset<String> unused = ImmutableSortedMultiset.copyOfSorted(toCopy);
        assertTrue(entrySet.toArrayCalled);
      }
    
      private static class IntegerDiv10 implements Comparable<IntegerDiv10> {
        final int value;
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 22.7K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/ForwardingSortedMap.java

      @SuppressWarnings({"unchecked", "nullness"})
      static int unsafeCompare(
          @CheckForNull Comparator<?> comparator, @CheckForNull Object o1, @CheckForNull Object o2) {
        if (comparator == null) {
          return ((Comparable<@Nullable Object>) o1).compareTo(o2);
        } else {
          return ((Comparator<@Nullable Object>) comparator).compare(o1, o2);
        }
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri May 12 15:26:39 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/graph/ElementOrderTest.java

        public String toString() {
          return "value=" + value;
        }
      }
    
      @SuppressWarnings("ComparableType")
      private static class ComparableSubClass extends NonComparableSuperClass
          implements Comparable<NonComparableSuperClass> {
    
        ComparableSubClass(Integer value) {
          super(value);
        }
    
        @Override
        public int compareTo(NonComparableSuperClass other) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 10 19:45:10 UTC 2022
    - 8.1K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/SortedLists.java

       * KeyAbsentBehavior)} using {@link Ordering#natural}.
       */
      @SuppressWarnings("rawtypes") // https://github.com/google/guava/issues/989
      public static <E extends Comparable> int binarySearch(
          List<? extends E> list,
          E e,
          KeyPresentBehavior presentBehavior,
          KeyAbsentBehavior absentBehavior) {
        checkNotNull(e);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 11K bytes
    - Viewed (0)
Back to top