Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 33 for handler (0.34 sec)

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

        eventBus.post(EVENT);
    
        assertEquals("Cause should be available.", exception, handler.exception);
        assertEquals("EventBus should be available.", eventBus, handler.context.getEventBus());
        assertEquals("Event should be available.", EVENT, handler.context.getEvent());
        assertEquals("Subscriber should be available.", subscriber, handler.context.getSubscriber());
        assertEquals(
            "Method should be available.",
    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)
  2. android/guava-tests/test/com/google/common/eventbus/EventBusTest.java

        eventBus.post(EVENT);
    
        assertEquals("Cause should be available.", exception, handler.exception);
        assertEquals("EventBus should be available.", eventBus, handler.context.getEventBus());
        assertEquals("Event should be available.", EVENT, handler.context.getEvent());
        assertEquals("Subscriber should be available.", subscriber, handler.context.getSubscriber());
        assertEquals(
            "Method should be available.",
    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)
  3. android/guava/src/com/google/common/reflect/Types.java

        TypeVariable<D> typeVariable =
            Reflection.newProxy(
                TypeVariable.class, new TypeVariableInvocationHandler(typeVariableImpl));
        return typeVariable;
      }
    
      /**
       * Invocation handler to work around a compatibility problem between Java 7 and Java 8.
       *
       * <p>Java 8 introduced a new method {@code getAnnotatedBounds()} in the {@link TypeVariable}
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  4. 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 Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 26 16:35:21 GMT 2024
    - 10.6K bytes
    - Viewed (0)
  5. guava/src/com/google/common/base/Throwables.java

       * declaredType}. Example usage:
       *
       * <pre>
       * try {
       *   someMethodThatCouldThrowAnything();
       * } catch (IKnowWhatToDoWithThisException e) {
       *   handle(e);
       * } catch (Throwable t) {
       *   Throwables.propagateIfInstanceOf(t, IOException.class);
       *   Throwables.propagateIfInstanceOf(t, SQLException.class);
       *   throw Throwables.propagate(t);
       * }
       * </pre>
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Wed Mar 06 15:38:58 GMT 2024
    - 20.6K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/base/Throwables.java

       * declaredType}. Example usage:
       *
       * <pre>
       * try {
       *   someMethodThatCouldThrowAnything();
       * } catch (IKnowWhatToDoWithThisException e) {
       *   handle(e);
       * } catch (Throwable t) {
       *   Throwables.propagateIfInstanceOf(t, IOException.class);
       *   Throwables.propagateIfInstanceOf(t, SQLException.class);
       *   throw Throwables.propagate(t);
       * }
       * </pre>
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Mar 06 15:38:58 GMT 2024
    - 20.6K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/hash/Hashing.java

       * @since 14.0
       */
      public static HashFunction adler32() {
        return ChecksumType.ADLER_32.hashFunction;
      }
    
      @Immutable
      enum ChecksumType implements ImmutableSupplier<Checksum> {
        CRC_32("Hashing.crc32()") {
          @Override
          public Checksum get() {
            return new CRC32();
          }
        },
        ADLER_32("Hashing.adler32()") {
          @Override
          public Checksum get() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 09 00:37:15 GMT 2024
    - 29.2K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/SetsTest.java

        ByteArrayOutputStream bos = new ByteArrayOutputStream();
        ObjectOutputStream out = new ObjectOutputStream(bos);
    
        out.writeObject(original);
    
        byte[] handle = toByteArray(baseWireHandle + handleOffset);
        byte[] ref = prepended(TC_REFERENCE, handle);
        bos.write(ref);
    
        return bos.toByteArray();
      }
    
      private static byte[] prepended(byte b, byte[] array) {
        byte[] out = new byte[array.length + 1];
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 49.3K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/Collections2.java

          calculateNextPermutation();
          return next;
        }
    
        void calculateNextPermutation() {
          j = list.size() - 1;
          int s = 0;
    
          // Handle the special case of an empty list. Skip the calculation of the
          // next permutation.
          if (j == -1) {
            return;
          }
    
          while (true) {
            int q = c[j] + o[j];
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/Iterables.java

      }
    
      /**
       * Returns the first element in {@code iterable} that satisfies the given predicate, or {@code
       * defaultValue} if none found. Note that this can usually be handled more naturally using {@code
       * tryFind(iterable, predicate).or(defaultValue)}.
       *
       * <p><b>{@code Stream} equivalent:</b> {@code
       * stream.filter(predicate).findFirst().orElse(defaultValue)}
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 24 19:38:27 GMT 2024
    - 42.8K bytes
    - Viewed (0)
Back to top