- Sort Score
- Result 10 results
- Languages All
Results 81 - 90 of 205 for comparable (0.06 sec)
-
android/guava-tests/test/com/google/common/collect/ComparatorsTest.java
Foo a = new Foo(1); Foo b = new Foo(1); assertThat(min(a, b, reverse)).isSameInstanceAs(a); assertThat(max(a, b, reverse)).isSameInstanceAs(a); } private static class Foo implements Comparable<Foo> { final Integer value; Foo(int value) { this.value = value; } @Override public int hashCode() { return value.hashCode(); } @Override
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Apr 12 15:07:59 UTC 2025 - 6.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/FauxveridesTest.java
* method from an ancestor class. * * <p>See JLS 8.4.2 for the definition of the related "override-equivalent." */ private static final class MethodSignature implements Comparable<MethodSignature> { final String name; final List<Class<?>> parameterTypes; final TypeSignature typeSignature; MethodSignature(Method method) { name = method.getName();
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue Jul 08 18:32:10 UTC 2025 - 9.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ImmutableSortedMapTest.java
assertMapEquals(copy, "two", 2, "three", 3, "one", 1); assertSame(copy, ImmutableSortedMap.copyOfSorted(copy)); assertSame(comparator, copy.comparator()); } private static class IntegerDiv10 implements Comparable<IntegerDiv10> { final int value; IntegerDiv10(int value) { this.value = value; } @Override public int compareTo(IntegerDiv10 o) { return value / 10 - o.value / 10;
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 27.6K bytes - Viewed (0) -
guava/src/com/google/common/primitives/UnsignedInteger.java
* primitive utilities</a>. * * @author Louis Wasserman * @since 11.0 */ @GwtCompatible public final class UnsignedInteger extends Number implements Comparable<UnsignedInteger> { public static final UnsignedInteger ZERO = fromIntBits(0); public static final UnsignedInteger ONE = fromIntBits(1); public static final UnsignedInteger MAX_VALUE = fromIntBits(-1);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 8.3K bytes - Viewed (0) -
guava/src/com/google/common/primitives/UnsignedLong.java
* primitive utilities</a>. * * @author Louis Wasserman * @author Colin Evans * @since 11.0 */ @GwtCompatible public final class UnsignedLong extends Number implements Comparable<UnsignedLong> { private static final long UNSIGNED_MASK = 0x7fffffffffffffffL; public static final UnsignedLong ZERO = new UnsignedLong(0); public static final UnsignedLong ONE = new UnsignedLong(1);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Jun 04 13:03:16 UTC 2025 - 8.8K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/RangeSet.java
* @since 14.0 */ @SuppressWarnings("rawtypes") // https://github.com/google/guava/issues/989 @DoNotMock("Use ImmutableRangeSet or TreeRangeSet") @GwtIncompatible public interface RangeSet<C extends Comparable> { // Query methods /** Determines whether any of this range set's member ranges contains {@code value}. */ boolean contains(C value); /**
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Mar 17 20:26:29 UTC 2025 - 9.8K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Sets.java
*/ @SuppressWarnings({ "rawtypes", // https://github.com/google/guava/issues/989 "NonApiType", // acts as a direct substitute for a constructor call }) public static <E extends Comparable> TreeSet<E> newTreeSet() { return new TreeSet<>(); } /** * Creates a <i>mutable</i> {@code TreeSet} instance containing the given elements sorted by their * natural ordering. *
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 81.6K bytes - Viewed (0) -
android/guava-testlib/test/com/google/common/testing/FreshValueGeneratorTest.java
Locale.class, Currency.class, List.class, Entry.class, Object.class, Equivalence.class, Predicate.class, Function.class, Comparable.class, Comparator.class, Ordering.class, Class.class, Type.class, TypeToken.class, TimeUnit.class, Ticker.class, Joiner.class,
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 17.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ImmutableSetMultimapTest.java
.expectedValuesPerKey(1); builder.put("key", "value"); assertThat(builder.build().entries()).containsExactly(Maps.immutableEntry("key", "value")); } static class HashHostileComparable implements Comparable<HashHostileComparable> { final String string; public HashHostileComparable(String string) { this.string = string; } @Override public int hashCode() {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 28.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ImmutableSetMultimapTest.java
.expectedValuesPerKey(1); builder.put("key", "value"); assertThat(builder.build().entries()).containsExactly(Maps.immutableEntry("key", "value")); } static class HashHostileComparable implements Comparable<HashHostileComparable> { final String string; public HashHostileComparable(String string) { this.string = string; } @Override public int hashCode() {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 27K bytes - Viewed (0)