- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 134 for handler (0.36 sec)
-
android/guava/src/com/google/common/hash/AbstractStreamingHasher.java
} return makeHash(); } /** * Computes a hash code based on the data that have been provided to this hasher. This is called * after all chunks are handled with {@link #process} and any leftover bytes that did not make a * complete chunk are handled with {@link #processRemaining}. */ protected abstract HashCode makeHash(); // Process pent-up data in chunks private void munchIfFull() {
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed Jun 15 20:59:00 GMT 2022 - 7.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ListsImplTest.java
DIRECT_ONLY, // Element can be added and removed only via direct calls, not through iterators ALL // Elements can be added and removed as well as modified. } /** Handles the creation of lists needed for the tests */ public abstract static class ListExample { private final String name; private final Modifiability modifiability;
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Feb 26 16:35:21 GMT 2024 - 10.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/eventbus/SubscriberRegistryTest.java
} public static class StringSubscriber { @Subscribe public void handle(String s) {} } public static class IntegerSubscriber { @Subscribe public void handle(Integer i) {} } public static class ObjectSubscriber { @Subscribe public void handle(Object o) {} } public void testFlattenHierarchy() { assertEquals(
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 5.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/eventbus/PackageSanityTests.java
setDefault(Dispatcher.class, Dispatcher.immediate()); } private static class DummySubscriber { private final EventBus eventBus = new EventBus(); @Subscribe public void handle(@Nullable Object anything) {} Subscriber toSubscriber() throws Exception { return Subscriber.create(eventBus, this, subscriberMethod()); } SubscriberExceptionContext toContext() {
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed May 16 22:49:59 GMT 2018 - 1.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/graph/AbstractStandardDirectedGraphTest.java
putEdge(N1, N2); assertThat(graph.predecessors(N2)).containsExactly(N1); // Edge direction handled correctly assertThat(graph.predecessors(N1)).isEmpty(); } @Test public void successors_oneEdge() { putEdge(N1, N2); assertThat(graph.successors(N1)).containsExactly(N2); // Edge direction handled correctly assertThat(graph.successors(N2)).isEmpty(); } @Test
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 14.1K bytes - Viewed (0) -
android/guava/src/com/google/common/eventbus/Dispatcher.java
import static java.util.Objects.requireNonNull; import com.google.common.collect.Queues; import java.util.Iterator; import java.util.Queue; import java.util.concurrent.ConcurrentLinkedQueue; /** * Handler for dispatching events to subscribers, providing different event ordering guarantees that * make sense for different situations. * * <p><b>Note:</b> The dispatcher is orthogonal to the subscriber's {@code Executor}. The dispatcher
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Fri Dec 15 19:31:54 GMT 2023 - 7.3K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/BaseComparable.java
import com.google.common.annotations.GwtCompatible; import java.io.Serializable; import org.checkerframework.checker.nullness.qual.Nullable; /** * Simple base class to verify that we handle generics correctly. * * @author Kevin Bourrillion */ @GwtCompatible public class BaseComparable implements Comparable<BaseComparable>, Serializable { private final String s;
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Thu Apr 20 11:19:03 GMT 2023 - 1.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/AbstractListeningExecutorServiceTest.java
} private static class TestCallable implements Callable<String> { @Override public String call() { return "foo"; } } /** Simple same thread listening executor service that doesn't handle shutdown. */ private static class TestListeningExecutorService extends AbstractListeningExecutorService { @Override public void execute(Runnable runnable) {
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Dec 04 17:37:03 GMT 2017 - 3.2K bytes - Viewed (0) -
android/guava/src/com/google/common/hash/AbstractByteHasher.java
import com.google.common.primitives.Shorts; import com.google.errorprone.annotations.CanIgnoreReturnValue; import java.nio.ByteBuffer; import java.nio.ByteOrder; /** * Abstract {@link Hasher} that handles converting primitives to bytes using a scratch {@code * ByteBuffer} and streams all bytes to a sink to compute the hash. * * @author Colin Decker */ @ElementTypesAreNonnullByDefault
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed Jun 15 20:59:00 GMT 2022 - 3.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/net/PercentEscaperTest.java
assertEquals("embedded%00null", e.escape("embedded\0null")); assertEquals("max%EF%BF%BFchar", e.escape("max\uffffchar")); } /** Tests the various ways that the space character can be handled */ public void testPlusForSpace() { UnicodeEscaper basicEscaper = new PercentEscaper("", false); UnicodeEscaper plusForSpaceEscaper = new PercentEscaper("", true);
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Oct 10 19:45:10 GMT 2022 - 5.2K bytes - Viewed (0)