Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for identifier (0.24 sec)

  1. android/guava/src/com/google/common/eventbus/AsyncEventBus.java

       * identifier} as the bus's name for logging purposes.
       *
       * @param identifier short name for the bus, for logging purposes.
       * @param executor Executor to use to dispatch events. It is the caller's responsibility to shut
       *     down the executor after the last event has been posted to this event bus.
       */
      public AsyncEventBus(String identifier, Executor executor) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Apr 22 13:05:46 GMT 2021
    - 2.5K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/eventbus/EventBusTest.java

     */
    public class EventBusTest extends TestCase {
      private static final String EVENT = "Hello";
      private static final String BUS_IDENTIFIER = "test-bus";
    
      private EventBus bus;
    
      @Override
      protected void setUp() throws Exception {
        super.setUp();
        bus = new EventBus(BUS_IDENTIFIER);
      }
    
      public void testBasicCatcherDistribution() {
        StringCatcher catcher = new StringCatcher();
        bus.register(catcher);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 18:32:41 GMT 2024
    - 11.3K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/eventbus/EventBusTest.java

     */
    public class EventBusTest extends TestCase {
      private static final String EVENT = "Hello";
      private static final String BUS_IDENTIFIER = "test-bus";
    
      private EventBus bus;
    
      @Override
      protected void setUp() throws Exception {
        super.setUp();
        bus = new EventBus(BUS_IDENTIFIER);
      }
    
      public void testBasicCatcherDistribution() {
        StringCatcher catcher = new StringCatcher();
        bus.register(catcher);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 18:32:41 GMT 2024
    - 11.3K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/eventbus/EventBus.java

      public EventBus() {
        this("default");
      }
    
      /**
       * Creates a new EventBus with the given {@code identifier}.
       *
       * @param identifier a brief name for this bus, for logging purposes. Should be a valid Java
       *     identifier.
       */
      public EventBus(String identifier) {
        this(
            identifier,
            MoreExecutors.directExecutor(),
            Dispatcher.perThreadDispatchQueue(),
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Aug 25 16:37:57 GMT 2021
    - 12.8K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/net/InetAddresses.java

        if (isTeredoAddress(ip)) {
          return false;
        }
    
        byte[] bytes = ip.getAddress();
    
        if ((bytes[8] | (byte) 0x03) != (byte) 0x03) {
    
          // Verify that high byte of the 64 bit identifier is zero, modulo
          // the U/L and G bits, with which we are not concerned.
          return false;
        }
    
        return (bytes[9] == (byte) 0x00) && (bytes[10] == (byte) 0x5e) && (bytes[11] == (byte) 0xfe);
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Dec 15 19:31:54 GMT 2023
    - 44K bytes
    - Viewed (1)
  6. android/guava/src/com/google/common/hash/BloomFilter.java

        <T extends @Nullable Object> boolean mightContain(
            @ParametricNullness T object,
            Funnel<? super T> funnel,
            int numHashFunctions,
            LockFreeBitArray bits);
    
        /**
         * Identifier used to encode this strategy, when marshalled as part of a BloomFilter. Only
         * values in the [-128, 127] range are valid for the compact serial form. Non-negative values
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/ImmutableSet.java

       * table and deduplicating elements as they come, so it only allocates O(max(distinct,
       * expectedCapacity)) rather than O(calls to add).
       *
       * <p>This implementation attempts to detect hash flooding, and if it's identified, falls back to
       * JdkBackedSetBuilderImpl.
       */
      private static final class RegularSetBuilderImpl<E> extends SetBuilderImpl<E> {
        // null until at least two elements are present
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 35.4K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/AbstractMapBasedMultimap.java

       * of wrapped collections: full and subcollections. Both have a delegate pointing to the
       * underlying collection class.
       *
       * <p>Full collections, identified by a null ancestor field, contain all multimap values for a
       * given key. Its delegate is a value in {@link AbstractMapBasedMultimap#map} whenever the
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Oct 13 14:11:58 GMT 2023
    - 46.6K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/util/concurrent/GeneratedMonitorTest.java

          return CaseFormat.UPPER_UNDERSCORE.to(CaseFormat.UPPER_CAMEL, name());
        }
      }
    
      /** Identifies all enterXxx and tryEnterXxx methods. */
      private static boolean isAnyEnter(Method method) {
        return method.getName().startsWith("enter") || method.getName().startsWith("tryEnter");
      }
    
      /** Identifies just tryEnterXxx methods (a subset of {@link #isAnyEnter}), which never block. */
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Apr 17 14:48:57 GMT 2023
    - 27.4K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/base/Charsets.java

       */
      @J2ktIncompatible
      @GwtIncompatible // Charset not supported by GWT
      public static final Charset UTF_16LE = Charset.forName("UTF-16LE");
    
      /**
       * UTF-16: sixteen-bit UCS Transformation Format, byte order identified by an optional byte-order
       * mark.
       *
       * <p><b>Java 7+ users:</b> this constant should be treated as deprecated; use {@link
       * java.nio.charset.StandardCharsets#UTF_16} instead.
       *
       */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 3.8K bytes
    - Viewed (0)
Back to top