- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 64 for incomparable (0.39 sec)
-
android/guava/src/com/google/common/collect/NaturalOrdering.java
public int compare(Comparable<?> left, Comparable<?> right) { checkNotNull(left); // for GWT checkNotNull(right); return ((Comparable<Object>) left).compareTo(right); } @Override @SuppressWarnings("unchecked") // TODO(kevinb): the right way to explain this?? public <S extends Comparable<?>> Ordering<@Nullable S> nullsFirst() { Ordering<@Nullable Comparable<?>> result = nullsFirst;
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Jun 04 13:03:16 UTC 2025 - 3K bytes - Viewed (0) -
src/test/java/jcifs/SmbTreeTest.java
assertSame(innerTree, inner, "Should return correct inner tree"); } /** * Test for unwrap with incompatible type. * Verifies behavior when trying to unwrap to an incompatible type. */ @Test void testUnwrap_incompatibleType() { when(smbTree.unwrap(IncompatibleTree.class)).thenReturn(null);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/MultimapBuilderTest.java
} // J2kt cannot translate the Comparable rawtype in a usable way (it becomes Comparable<Object> // but types are typically only Comparable to themselves). @SuppressWarnings({"rawtypes", "unchecked"}) private static MultimapBuilderWithKeys<Comparable<?>> rawtypeToWildcard( MultimapBuilderWithKeys<Comparable> treeKeys) { return (MultimapBuilderWithKeys) treeKeys; }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 5.2K bytes - Viewed (0) -
src/main/java/jcifs/pac/ASN1Util.java
* @param object the object to cast * @return object cast to type * @throws PACDecodingException if types are incompatible */ public static <T> T as(final Class<T> type, final Object object) throws PACDecodingException { if (!type.isInstance(object)) { throw new PACDecodingException("Incompatible object types " + type + " " + object.getClass()); } return type.cast(object); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 8.2K bytes - Viewed (0) -
src/test/java/jcifs/pac/ASN1UtilTest.java
// Test failed casting Object obj = 123; // Integer assertThrows(PACDecodingException.class, () -> { ASN1Util.as(String.class, obj); }, "Should throw PACDecodingException for incompatible types"); } // --- as(Class, Enumeration) --- @Test void testAs_Enumeration_Success() throws PACDecodingException { // Test successful casting from enumeration
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.4K bytes - Viewed (0) -
compat/maven-artifact/src/main/java/org/apache/maven/artifact/versioning/DefaultArtifactVersion.java
private Integer buildNumber; private String qualifier; private ComparableVersion comparable; public DefaultArtifactVersion(String version) { parseVersion(version); } @Override public int hashCode() { return 11 + comparable.hashCode(); } @Override public boolean equals(Object other) { if (this == other) {
Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Fri Jun 06 14:28:57 UTC 2025 - 6.1K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/primitives/UnsignedLongsBenchmark.java
} return tmp; } @Benchmark long parseUnsignedLong(int reps) { long tmp = 0; // Given that we make three calls per pass, we scale reps down in order // to do a comparable amount of work to other measurements. int scaledReps = reps / 3 + 1; for (int i = 0; i < scaledReps; i++) { int j = i & ARRAY_MASK; tmp += UnsignedLongs.parseUnsignedLong(decimalStrings[j]);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Dec 28 01:26:26 UTC 2024 - 4.4K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/EqualsTester.java
* </pre> * * <p>This tests: * * <ul> * <li>comparing each object against itself returns true * <li>comparing each object against null returns false * <li>comparing each object against an instance of an incompatible class returns false * <li>comparing each pair of objects within the same equality group returns true * <li>comparing each pair of objects from different equality groups returns false
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 01:14:59 UTC 2025 - 6.1K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/RegularContiguousSet.java
protected @Nullable C computeNext(C previous) { return equalsOrThrow(previous, first) ? null : domain.previous(previous); } }; } private static boolean equalsOrThrow(Comparable<?> left, @Nullable Comparable<?> right) { return right != null && Range.compareOrThrow(left, right) == 0; } @Override boolean isPartialView() { return false; } @Override
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 8.3K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/EmptyContiguousSet.java
import org.jspecify.annotations.Nullable; /** * An empty contiguous set. * * @author Gregory Kick */ @GwtCompatible @SuppressWarnings("rawtypes") // allow ungenerified Comparable types final class EmptyContiguousSet<C extends Comparable> extends ContiguousSet<C> { EmptyContiguousSet(DiscreteDomain<C> domain) { super(domain); } @Override public C first() { throw new NoSuchElementException(); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 4.1K bytes - Viewed (0)