Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 163 for Comparable (0.21 sec)

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

      @Override
      protected <E extends Comparable<? super E>> SortedSet<E> of() {
        return ImmutableSortedSet.of();
      }
    
      @Override
      protected <E extends Comparable<? super E>> SortedSet<E> of(E e) {
        return ImmutableSortedSet.of(e);
      }
    
      @Override
      protected <E extends Comparable<? super E>> SortedSet<E> of(E e1, E e2) {
        return ImmutableSortedSet.of(e1, e2);
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 46.7K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/DiscreteDomain.java

    import java.io.Serializable;
    import java.math.BigInteger;
    import java.util.NoSuchElementException;
    import javax.annotation.CheckForNull;
    
    /**
     * 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/RegularContiguousSet.java

          protected C computeNext(C previous) {
            return equalsOrThrow(previous, first) ? null : domain.previous(previous);
          }
        };
      }
    
      private static boolean equalsOrThrow(Comparable<?> left, @CheckForNull Comparable<?> right) {
        return right != null && Range.compareOrThrow(left, right) == 0;
      }
    
      @Override
      boolean isPartialView() {
        return false;
      }
    
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/TreeBasedTable.java

       *
       * <p>The method signature specifies {@code R extends Comparable} with a raw {@link Comparable},
       * instead of {@code R extends Comparable<? super R>}, and the same for {@code C}. That's
       * necessary to support classes defined without generics.
       */
      @SuppressWarnings("rawtypes") // https://github.com/google/guava/issues/989
      public static <R extends Comparable, C extends Comparable, V> TreeBasedTable<R, C, V> create() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/Helpers.java

      public static <K extends Comparable, V extends @Nullable Object>
          Iterable<Entry<K, V>> orderEntriesByKey(List<Entry<K, V>> insertionOrder) {
        @SuppressWarnings("unchecked") // assume any Comparable is Comparable<Self>
        Comparator<? super K> keyComparator = (Comparator<? super K>) Comparable::compareTo;
        sort(insertionOrder, entryComparator(keyComparator));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/LegacyComparable.java

    import static java.util.Arrays.asList;
    
    import com.google.common.annotations.GwtCompatible;
    import java.io.Serializable;
    import org.checkerframework.checker.nullness.qual.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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/RangeMap.java

      Range<K> span();
    
      /**
       * Maps a range to a specified value (optional operation).
       *
       * <p>Specifically, after a call to {@code put(range, value)}, if {@link
       * Range#contains(Comparable) range.contains(k)}, then {@link #get(Comparable) get(k)} will return
       * {@code value}.
       *
       * <p>If {@code range} {@linkplain Range#isEmpty() is empty}, then this is a no-op.
       */
      void put(Range<K> range, V value);
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/Ordering.java

       * a {@link NullPointerException} when passed a null parameter.
       *
       * <p>The type specification is {@code <C extends Comparable>}, instead of the technically correct
       * {@code <C extends Comparable<? super C>>}, to support legacy types from before Java 5.
       *
       * <p><b>Java 8+ users:</b> use {@link Comparator#naturalOrder} instead.
       */
      @GwtCompatible(serializable = true)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 39.4K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/Queues.java

       * ordering.
       *
       * @since 11.0 (but the bound of {@code E} was changed from {@code Object} to {@code Comparable}
       *     in 15.0)
       */
      @SuppressWarnings("rawtypes") // https://github.com/google/guava/issues/989
      @J2ktIncompatible
      @GwtIncompatible // PriorityBlockingQueue
      public static <E extends Comparable> PriorityBlockingQueue<E> newPriorityBlockingQueue() {
        return new PriorityBlockingQueue<>();
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 26 14:11:14 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/Queues.java

       * ordering.
       *
       * @since 11.0 (but the bound of {@code E} was changed from {@code Object} to {@code Comparable}
       *     in 15.0)
       */
      @SuppressWarnings("rawtypes") // https://github.com/google/guava/issues/989
      @J2ktIncompatible
      @GwtIncompatible // PriorityBlockingQueue
      public static <E extends Comparable> PriorityBlockingQueue<E> newPriorityBlockingQueue() {
        return new PriorityBlockingQueue<>();
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 26 14:11:14 UTC 2024
    - 18.2K bytes
    - Viewed (0)
Back to top