Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 205 for comparable (1.05 sec)

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

    import com.google.common.annotations.J2ktIncompatible;
    import java.io.Serializable;
    import org.jspecify.annotations.NullMarked;
    import org.jspecify.annotations.Nullable;
    
    /**
     * A class that implements {@code Comparable} without generics, such as those found in libraries
     * that support Java 1.4 and before. Our library needs to do the bare minimum to accommodate such
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Feb 13 17:34:21 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/ImmutableList.java

       *
       * @throws NullPointerException if any element in the input is null
       * @since 21.0
       */
      public static <E extends Comparable<? super E>> ImmutableList<E> sortedCopyOf(
          Iterable<? extends E> elements) {
        Comparable<?>[] array = Iterables.toArray(elements, new Comparable<?>[0]);
        checkElementsNotNull((Object[]) array);
        Arrays.sort(array);
        return asImmutableList(array);
      }
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 27.5K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/DiscreteDomain.java

    import java.io.Serializable;
    import java.math.BigInteger;
    import java.util.NoSuchElementException;
    import org.jspecify.annotations.Nullable;
    
    /**
     * A descriptor for a <i>discrete</i> {@code Comparable} domain such as all {@link Integer}
     * instances. A discrete domain is one that supports the three basic operations: {@link #next},
     * {@link #previous} and {@link #distance}, according to their specifications. The methods {@link
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Feb 13 17:34:21 UTC 2025
    - 10.4K bytes
    - Viewed (0)
  4. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableList.java

        return unsafeDelegateList((List) Arrays.asList(elements));
      }
    
      public static <E extends Comparable<? super E>> ImmutableList<E> sortedCopyOf(
          Iterable<? extends E> elements) {
        Comparable<?>[] array = Iterables.toArray(elements, new Comparable<?>[0]);
        checkElementsNotNull((Object[]) array);
        Arrays.sort(array);
        return asImmutableList(array);
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Aug 06 18:32:41 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/collect/testing/BaseComparable.java

    import org.jspecify.annotations.Nullable;
    
    /**
     * Simple base class to verify that we handle generics correctly.
     *
     * @author Kevin Bourrillion
     */
    @GwtCompatible
    public class BaseComparable implements Comparable<BaseComparable>, Serializable {
      private final String s;
    
      public BaseComparable(String s) {
        this.s = s;
      }
    
      @Override
      public int hashCode() { // delegate to 's'
        return s.hashCode();
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Feb 13 17:34:21 UTC 2025
    - 1.6K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/TreeRangeSet.java

     * @since 14.0
     */
    @GwtIncompatible // uses NavigableMap
    public class TreeRangeSet<C extends Comparable<?>> extends AbstractRangeSet<C>
        implements Serializable {
    
      @VisibleForTesting final NavigableMap<Cut<C>, Range<C>> rangesByLowerBound;
    
      /** Creates an empty {@code TreeRangeSet} instance. */
      public static <C extends Comparable<?>> TreeRangeSet<C> create() {
        return new TreeRangeSet<>(new TreeMap<Cut<C>, Range<C>>());
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 32.3K bytes
    - Viewed (0)
  7. android/guava-testlib/test/com/google/common/testing/anotherpackage/ForwardingWrapperTesterTest.java

        void foo(
            String s,
            Runnable r,
            Number n,
            Iterable<?> it,
            boolean b,
            Equivalence<String> eq,
            Exception e,
            InputStream in,
            Comparable<?> c,
            Ordering<Integer> ord,
            Charset charset,
            TimeUnit unit,
            Class<?> cls,
            Joiner joiner,
            Pattern pattern,
            UnsignedInteger ui,
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Jul 14 14:44:08 UTC 2025
    - 15.7K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/AbstractRangeSet.java

     * A skeletal implementation of {@code RangeSet}.
     *
     * @author Louis Wasserman
     */
    @SuppressWarnings("rawtypes") // https://github.com/google/guava/issues/989
    @GwtIncompatible
    abstract class AbstractRangeSet<C extends Comparable> implements RangeSet<C> {
      AbstractRangeSet() {}
    
      @Override
      public boolean contains(C value) {
        return rangeContaining(value) != null;
      }
    
      @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/google/SetGenerators.java

          return insertionOrder;
        }
      }
    
      public static class ImmutableSortedSetExplicitSuperclassComparatorGenerator
          extends TestStringSetGenerator {
    
        private static final Comparator<Comparable<?>> COMPARABLE_REVERSED = Collections.reverseOrder();
    
        @Override
        protected SortedSet<String> create(String[] elements) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 15.9K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/AbstractRangeSet.java

     * A skeletal implementation of {@code RangeSet}.
     *
     * @author Louis Wasserman
     */
    @SuppressWarnings("rawtypes") // https://github.com/google/guava/issues/989
    @GwtIncompatible
    abstract class AbstractRangeSet<C extends Comparable> implements RangeSet<C> {
      AbstractRangeSet() {}
    
      @Override
      public boolean contains(C value) {
        return rangeContaining(value) != null;
      }
    
      @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 2.8K bytes
    - Viewed (0)
Back to top