- Sort Score
- Result 10 results
- Languages All
Results 91 - 100 of 131 for Comparable (0.26 sec)
-
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 Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Nov 14 23:40:07 UTC 2024 - 6.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ComparisonChainTest.java
*/ @GwtCompatible @NullMarked public class ComparisonChainTest extends TestCase { private static final DontCompareMe DONT_COMPARE_ME = new DontCompareMe(); private static class DontCompareMe implements Comparable<DontCompareMe> { @Override public int compareTo(DontCompareMe o) { throw new AssertionFailedError(); } } @SuppressWarnings({"deprecation", "InlineMeInliner"}) // test of a deprecated method
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Feb 12 03:05:13 UTC 2025 - 7.6K bytes - Viewed (0) -
docs/en/docs/tutorial/body-updates.md
* Convert the copied model to something that can be stored in your DB (for example, using the `jsonable_encoder`). * This is comparable to using the model's `.model_dump()` method again, but it makes sure (and converts) the values to data types that can be converted to JSON, for example, `datetime` to `str`. * Save the data to your DB. * Return the updated model.
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 4.7K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/MultimapBuilder.java
* safely cast to a {@link java.util.SortedSet}, and the {@link Multimap#asMap()} can safely be * cast to a {@link java.util.SortedMap}. */ @SuppressWarnings("rawtypes") public static MultimapBuilderWithKeys<Comparable> treeKeys() { return treeKeys(Ordering.natural()); } /** * Uses a {@link TreeMap} sorted by the specified comparator to map keys to value collections. *
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Jul 16 17:42:14 UTC 2025 - 18K bytes - Viewed (0) -
guava/src/com/google/common/collect/MultimapBuilder.java
* safely cast to a {@link java.util.SortedSet}, and the {@link Multimap#asMap()} can safely be * cast to a {@link java.util.SortedMap}. */ @SuppressWarnings("rawtypes") public static MultimapBuilderWithKeys<Comparable> treeKeys() { return treeKeys(Ordering.natural()); } /** * Uses a {@link TreeMap} sorted by the specified comparator to map keys to value collections. *
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Jul 16 17:42:14 UTC 2025 - 18K bytes - Viewed (0) -
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) -
docs/es/docs/tutorial/body-updates.md
* Convertir el modelo copiado en algo que pueda almacenarse en tu base de datos (por ejemplo, usando el `jsonable_encoder`). * Esto es comparable a usar el método `.model_dump()` del modelo de nuevo, pero asegura (y convierte) los valores a tipos de datos que pueden convertirse a JSON, por ejemplo, `datetime` a `str`. * Guardar los datos en tu base de datos.
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Mon Dec 30 18:26:57 UTC 2024 - 4.9K bytes - Viewed (0) -
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 Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Jul 16 17:42:14 UTC 2025 - 21.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)