Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for bliver (0.23 sec)

  1. android/guava-tests/test/com/google/common/eventbus/AsyncEventBusTest.java

        bus = new AsyncEventBus(executor);
      }
    
      public void testBasicDistribution() {
        StringCatcher catcher = new StringCatcher();
        bus.register(catcher);
    
        // We post the event, but our Executor will not deliver it until instructed.
        bus.post(EVENT);
    
        List<String> events = catcher.getEvents();
        assertTrue("No events should be delivered synchronously.", events.isEmpty());
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue May 15 20:25:06 GMT 2018
    - 2.3K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/io/CharSequenceReader.java

        requireNonNull(seq); // safe as long as we call this only after checkOpen
        return seq.length() - pos;
      }
    
      /*
       * To avoid the need to call requireNonNull so much, we could consider more clever approaches,
       * such as:
       *
       * - Make checkOpen return the non-null `seq`. Then callers can assign that to a local variable or
       *   even back to `this.seq`. However, that may suggest that we're defending against concurrent
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 28 20:13:02 GMT 2023
    - 4.5K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/RunnablesTest.java

     */
    
    package com.google.common.util.concurrent;
    
    import com.google.common.annotations.GwtCompatible;
    import junit.framework.TestCase;
    
    /**
     * Unit tests for {@link Runnables}.
     *
     * @author Olivier Pernet
     */
    @GwtCompatible
    public class RunnablesTest extends TestCase {
      public void testDoNothingRunnableIsSingleton() {
        assertSame(Runnables.doNothing(), Runnables.doNothing());
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Apr 21 02:27:51 GMT 2017
    - 986 bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/util/concurrent/RunnablesTest.java

     */
    
    package com.google.common.util.concurrent;
    
    import com.google.common.annotations.GwtCompatible;
    import junit.framework.TestCase;
    
    /**
     * Unit tests for {@link Runnables}.
     *
     * @author Olivier Pernet
     */
    @GwtCompatible
    public class RunnablesTest extends TestCase {
      public void testDoNothingRunnableIsSingleton() {
        assertSame(Runnables.doNothing(), Runnables.doNothing());
      }
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Sep 15 13:47:32 GMT 2016
    - 986 bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/eventbus/AsyncEventBusTest.java

        bus = new AsyncEventBus(executor);
      }
    
      public void testBasicDistribution() {
        StringCatcher catcher = new StringCatcher();
        bus.register(catcher);
    
        // We post the event, but our Executor will not deliver it until instructed.
        bus.post(EVENT);
    
        List<String> events = catcher.getEvents();
        assertTrue("No events should be delivered synchronously.", events.isEmpty());
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 2.3K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/eventbus/DeadEvent.java

       *
       * @return the source of this event.
       */
      public Object getSource() {
        return source;
      }
    
      /**
       * Returns the wrapped, 'dead' event, which the system was unable to deliver to any registered
       * subscriber.
       *
       * @return the 'dead' event that could not be delivered.
       */
      public Object getEvent() {
        return event;
      }
    
      @Override
      public String toString() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Apr 22 13:05:46 GMT 2021
    - 2.1K bytes
    - Viewed (0)
Back to top