- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 71 for custom (0.2 sec)
-
android/guava/src/com/google/common/base/Verify.java
if (!expression) { throw new VerifyException(); } } /** * Ensures that {@code expression} is {@code true}, throwing a {@code VerifyException} with a * custom message otherwise. * * @param expression a boolean expression * @param errorMessageTemplate a template for the exception message should the check fail. The
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Mon May 17 14:07:47 GMT 2021 - 18.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/ThreadFactoryBuilderTest.java
} public void testNameFormatWithPercentS_custom() { String format = "super-duper-thread-%s"; ThreadFactory factory = builder.setNameFormat(format).build(); for (int i = 0; i < 11; i++) { assertEquals(rootLocaleFormat(format, i), factory.newThread(monitoredRunnable).getName()); } } public void testNameFormatWithPercentD_custom() { String format = "super-duper-thread-%d";
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 7.5K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ForwardingObject.java
* the symmetry of {@code equals}. Custom definitions of equality are usually based on an interface, * such as {@code Set} or {@code List}, so that the implementation of {@code equals} can cast the * object being tested for equality to the custom interface. {@code ForwardingObject} implements no * such custom interfaces directly; they are implemented only in subclasses. Therefore, forwarding
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Tue Jun 29 19:42:21 GMT 2021 - 3K bytes - Viewed (0) -
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/SingletonImmutableList.java
* * @author Hayward Chan */ @ElementTypesAreNonnullByDefault final class SingletonImmutableList<E> extends ForwardingImmutableList<E> { final transient List<E> delegate; // This reference is used both by the custom field serializer, and by the // GWT compiler to infer the elements of the lists that needs to be // serialized. E element; SingletonImmutableList(E element) {
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Tue Jan 23 18:43:40 GMT 2024 - 1.4K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/Striped.java
* * @param stripes the minimum number of stripes (locks) required * @param supplier a {@code Supplier<L>} object to obtain locks from * @return a new {@code Striped<L>} */ static <L> Striped<L> custom(int stripes, Supplier<L> supplier) { return new CompactStriped<>(stripes, supplier); } /** * Creates a {@code Striped<Lock>} with eagerly initialized, strongly referenced locks. Every lock
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Mon Apr 10 20:55:18 GMT 2023 - 20.3K bytes - Viewed (1) -
android/guava/src/com/google/common/reflect/AbstractInvocationHandler.java
* * <p>Subclasses can override this method to provide custom equality. */ @Override public boolean equals(@CheckForNull Object obj) { return super.equals(obj); } /** * By default delegates to {@link Object#hashCode}. The dynamic proxies' {@code hashCode()} will * delegate to this method. Subclasses can override this method to provide custom equality. */ @Override public int hashCode() {
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed Jan 05 17:43:40 GMT 2022 - 5.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/ListenerCallQueueTest.java
Object listener = new MyListener(); ListenerCallQueue<Object> queue = new ListenerCallQueue<>(); queue.addListener(listener, directExecutor()); queue.enqueue(THROWING_EVENT, "custom-label"); Logger logger = Logger.getLogger(ListenerCallQueue.class.getName()); logger.setLevel(Level.SEVERE); TestLogHandler logHandler = new TestLogHandler(); logger.addHandler(logHandler);
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Wed Feb 09 22:57:07 GMT 2022 - 8.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/AbstractChainedListenableFutureTest.java
import junit.framework.TestCase; /** * Unit tests for any listenable future that chains other listenable futures. Unit tests need only * override buildChainingFuture and getSuccessfulResult, but they can add custom tests as needed. * * @author Nishant Thakkar */ public abstract class AbstractChainedListenableFutureTest<T> extends TestCase { protected static final int EXCEPTION_DATA = -1;
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 3.4K bytes - Viewed (0) -
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/SingletonImmutableBiMap.java
* * @author Hayward Chan */ @ElementTypesAreNonnullByDefault final class SingletonImmutableBiMap<K, V> extends ImmutableBiMap<K, V> { // These references are used both by the custom field serializer, and by the // GWT compiler to infer the keys and values of the map that needs to be // serialized. // // Although they are non-final, they are package private and the reference is
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Tue Jan 23 18:43:40 GMT 2024 - 2.1K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/AbstractPackageSanityTests.java
* visible static factory method whose return type is {@code C} or {@code C}'s subtype. * </ul> * * <p>In all cases, if {@code C} needs custom logic for testing serialization, you can add an * explicit {@code testSerializable()} test in the corresponding {@code CTest} class, and {@code * C} will be excluded from automated serialization test performed by this method.
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Fri May 12 19:22:18 GMT 2023 - 17.5K bytes - Viewed (0)