Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 117 for Comparable (0.18 sec)

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

        return suite;
      }
    
      @Override
      protected <E extends Comparable<? super E>> Set<E> of() {
        return ImmutableSet.of();
      }
    
      @Override
      protected <E extends Comparable<? super E>> Set<E> of(E e) {
        return ImmutableSet.of(e);
      }
    
      @Override
      protected <E extends Comparable<? super E>> Set<E> of(E e1, E e2) {
        return ImmutableSet.of(e1, e2);
      }
    
      @Override
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 13.9K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/TreeMultimap.java

     * by supplied comparators. In all cases, this implementation uses {@link Comparable#compareTo} or
     * {@link Comparator#compare} instead of {@link Object#equals} to determine equivalence of
     * instances.
     *
     * <p><b>Warning:</b> The comparators or comparables used must be <i>consistent with equals</i> as
     * explained by the {@link Comparable} class specification. Otherwise, the resulting multiset will
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Sat Mar 09 00:21:17 GMT 2024
    - 8.7K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/AbstractImmutableSetTest.java

      protected abstract <E extends Comparable<? super E>> Set<E> of();
    
      protected abstract <E extends Comparable<? super E>> Set<E> of(E e);
    
      protected abstract <E extends Comparable<? super E>> Set<E> of(E e1, E e2);
    
      protected abstract <E extends Comparable<? super E>> Set<E> of(E e1, E e2, E e3);
    
      protected abstract <E extends Comparable<? super E>> Set<E> of(E e1, E e2, E e3, E e4);
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 18.7K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/AbstractImmutableSetTest.java

      protected abstract <E extends Comparable<? super E>> Set<E> of();
    
      protected abstract <E extends Comparable<? super E>> Set<E> of(E e);
    
      protected abstract <E extends Comparable<? super E>> Set<E> of(E e1, E e2);
    
      protected abstract <E extends Comparable<? super E>> Set<E> of(E e1, E e2, E e3);
    
      protected abstract <E extends Comparable<? super E>> Set<E> of(E e1, E e2, E e3, E e4);
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 18.7K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/ImmutableRangeMap.java

     * @since 14.0
     */
    @GwtIncompatible // NavigableMap
    @ElementTypesAreNonnullByDefault
    public class ImmutableRangeMap<K extends Comparable<?>, V> implements RangeMap<K, V>, Serializable {
    
      private static final ImmutableRangeMap<Comparable<?>, Object> EMPTY =
          new ImmutableRangeMap<>(ImmutableList.<Range<Comparable<?>>>of(), ImmutableList.of());
    
      /**
       * Returns a {@code Collector} that accumulates the input elements into a new {@code
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 14.5K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/ImmutableRangeSet.java

    public final class ImmutableRangeSet<C extends Comparable> extends AbstractRangeSet<C>
        implements Serializable {
    
      private static final ImmutableRangeSet<Comparable<?>> EMPTY =
          new ImmutableRangeSet<>(ImmutableList.<Range<Comparable<?>>>of());
    
      private static final ImmutableRangeSet<Comparable<?>> ALL =
          new ImmutableRangeSet<>(ImmutableList.of(Range.<Comparable<?>>all()));
    
      /**
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 26.9K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/ImmutableRangeSet.java

    public final class ImmutableRangeSet<C extends Comparable> extends AbstractRangeSet<C>
        implements Serializable {
    
      private static final ImmutableRangeSet<Comparable<?>> EMPTY =
          new ImmutableRangeSet<>(ImmutableList.<Range<Comparable<?>>>of());
    
      private static final ImmutableRangeSet<Comparable<?>> ALL =
          new ImmutableRangeSet<>(ImmutableList.of(Range.<Comparable<?>>all()));
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 27.2K bytes
    - Viewed (0)
  8. guava-testlib/test/com/google/common/testing/ArbitraryInstancesTest.java

      @SuppressWarnings("SelfComparison")
      public void testGet_comparable() {
        @SuppressWarnings("unchecked") // The null value can compare with any Object
        Comparable<Object> comparable = ArbitraryInstances.get(Comparable.class);
        assertEquals(0, comparable.compareTo(comparable));
        assertTrue(comparable.compareTo("") > 0);
        assertThrows(NullPointerException.class, () -> comparable.compareTo(null));
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 22.1K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/Cut.java

        }
    
        @Override
        Comparable<?> leastValueAbove(DiscreteDomain<Comparable<?>> domain) {
          return domain.minValue();
        }
    
        @Override
        Comparable<?> greatestValueBelow(DiscreteDomain<Comparable<?>> domain) {
          throw new AssertionError();
        }
    
        @Override
        Cut<Comparable<?>> canonical(DiscreteDomain<Comparable<?>> domain) {
          try {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 12.3K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/NaturalOrdering.java

        checkNotNull(left); // for GWT
        checkNotNull(right);
        return ((Comparable<Object>) left).compareTo(right);
      }
    
      @Override
      public <S extends Comparable<?>> Ordering<@Nullable S> nullsFirst() {
        Ordering<@Nullable Comparable<?>> result = nullsFirst;
        if (result == null) {
          result = nullsFirst = super.<Comparable<?>>nullsFirst();
        }
        return (Ordering<@Nullable S>) result;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Jun 26 21:02:13 GMT 2023
    - 2.7K bytes
    - Viewed (0)
Back to top