- Sort Score
- Result 10 results
- Languages All
Results 131 - 140 of 1,924 for toObject (0.04 sec)
-
guava-tests/test/com/google/common/collect/FauxveridesTest.java
public void testImmutableSortedMapCopyOfMap() { Map<Object, Object> original = ImmutableMap.of(new Object(), new Object(), new Object(), new Object()); assertThrows(ClassCastException.class, () -> ImmutableSortedMap.copyOf(original)); } public void testImmutableSortedSetCopyOfIterable() { // false positive: `new Object()` is not equal to `new Object()` @SuppressWarnings("DistinctVarargsChecker")
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue Jul 08 18:32:10 UTC 2025 - 9.4K bytes - Viewed (0) -
android/guava-testlib/test/com/google/common/testing/EqualsTesterTest.java
/** Test proper handling where an object incorrectly tests for an incompatible class */ public void testInvalidEqualsIncompatibleClass() { Object obj = new InvalidEqualsIncompatibleClassObject(); equalsTester.addEqualityGroup(obj); try { equalsTester.testEquals(); } catch (AssertionFailedError e) { assertErrorMessage( e, obj + " must not be Object#equals to an arbitrary object of another class");
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed May 14 19:40:47 UTC 2025 - 13.1K bytes - Viewed (0) -
src/main/java/org/codelibs/core/io/SerializeUtil.java
} private static final int BYTE_ARRAY_SIZE = 8 * 1024; /** * Tests if the object can be serialized. * * @param obj the object to be serialized (must not be {@literal null}) * @return the deserialized object */ public static Object serialize(final Object obj) { assertArgumentNotNull("obj", obj); final byte[] binary = fromObjectToBinary(obj);
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 3.2K bytes - Viewed (0) -
guava/src/com/google/common/base/Functions.java
*/ public static <A extends @Nullable Object, B extends @Nullable Object, C extends @Nullable Object> Function<A, C> compose(Function<B, C> g, Function<A, ? extends B> f) { return new FunctionComposition<>(g, f); } private static final class FunctionComposition< A extends @Nullable Object, B extends @Nullable Object, C extends @Nullable Object> implements Function<A, C>, Serializable {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Aug 06 17:32:30 UTC 2025 - 15.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/TestThread.java
* test with reference to the same "lock-like object", and then their interactions with that object * are choreographed via the various methods on this class. * * <p>A "lock-like object" is really any object that may be used for concurrency control. If the * {@link #callAndAssertBlocks} method is ever called in a test, the lock-like object must have a
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 10.8K bytes - Viewed (0) -
guava-testlib/src/com/google/common/testing/CollectorTester.java
public final class CollectorTester< T extends @Nullable Object, A extends @Nullable Object, R extends @Nullable Object> { /** * Creates a {@code CollectorTester} for the specified {@code Collector}. The result of the {@code * Collector} will be compared to the expected value using {@link Object#equals}. */ public static <T extends @Nullable Object, A extends @Nullable Object, R extends @Nullable Object>
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu May 15 21:47:56 UTC 2025 - 6.6K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/timer/MonitorTarget.java
* @return the updated buffer */ protected StringBuilder append(final StringBuilder buf, final String key, final Supplier<Object> supplier) { final StringBuilder tempBuf = new StringBuilder(); tempBuf.append('"').append(key).append("\":"); try { final Object value = supplier.get(); if (value == null) { tempBuf.append("null");
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 3.8K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/MultimapSizeTester.java
// @Ignore affects the Android test runner, which respects JUnit 4 annotations on JUnit 3 tests. @SuppressWarnings("JUnit4ClassUsedInJUnit3") @NullMarked public class MultimapSizeTester<K extends @Nullable Object, V extends @Nullable Object> extends AbstractMultimapTester<K, V, Multimap<K, V>> { public void testSize() { int expectedSize = getNumElements(); Multimap<K, V> multimap = multimap();
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 3.8K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/MapRemoveEntryTester.java
import com.google.common.collect.testing.features.CollectionSize; import com.google.common.collect.testing.features.MapFeature; import java.util.Map; import org.junit.Ignore; /** * Tester for {@link Map#remove(Object, Object)}. Can't be invoked directly; please see {@link * com.google.common.collect.testing.MapTestSuiteBuilder}. * * @author Louis Wasserman */ @GwtCompatible
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Oct 31 14:51:04 UTC 2024 - 3.9K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/util/QueryResponseListTest.java
Map<String, Object> doc3 = new HashMap<>(); doc3.put("title", "Doc3"); assertEquals(-1, qrList.indexOf(doc3)); } public void test_listOperations_iterators() { List<Map<String, Object>> documentList = new ArrayList<>(); Map<String, Object> doc1 = new HashMap<>(); doc1.put("title", "Doc1"); Map<String, Object> doc2 = new HashMap<>(); doc2.put("title", "Doc2");
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sat Jul 12 07:34:10 UTC 2025 - 39.7K bytes - Viewed (0)