Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 117 for getClassB (0.44 sec)

  1. guava/src/com/google/common/base/MoreObjects.java

      public static ToStringHelper toStringHelper(Object self) {
        return new ToStringHelper(self.getClass().getSimpleName());
      }
    
      /**
       * Creates an instance of {@link ToStringHelper} in the same manner as {@link
       * #toStringHelper(Object)}, but using the simple name of {@code clazz} instead of using an
       * instance's {@link Object#getClass()}.
       *
       * <p>Note that in GWT, class names are often obfuscated.
       *
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Oct 13 14:11:58 GMT 2023
    - 15.9K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureCancellationCauseTest.java

                executor.execute(runnable);
              }
            };
        Future<?> future = newFutureInstance();
        future
            .getClass()
            .getMethod(
                "setFuture",
                future.getClass().getClassLoader().loadClass(ListenableFuture.class.getName()))
            .invoke(future, badFuture);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 6.1K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/reflect/TypesTest.java

        assertEquals(null, ourType.getOwnerType());
      }
    
      public void testNewParameterizedType_nonStaticLocalClass() {
        class LocalClass<T> {}
        Type jvmType = new LocalClass<String>() {}.getClass().getGenericSuperclass();
        Type ourType = Types.newParameterizedType(LocalClass.class, String.class);
        assertEquals(jvmType, ourType);
      }
    
      public void testNewParameterizedType_staticLocalClass() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 14.8K bytes
    - Viewed (0)
  4. android/guava-testlib/test/com/google/common/testing/TearDownStackTest.java

          assertThat(expected).hasCauseThat().hasMessageThat().isEqualTo("two");
        } catch (RuntimeException e) {
          throw new RuntimeException(
              "A ClusterException should have been thrown, rather than a " + e.getClass().getName(), e);
        }
    
        assertEquals(true, tearDownOne.ran);
        assertEquals(true, tearDownTwo.ran);
      }
    
      @Override
      public final void runBare() throws Throwable {
        try {
          setUp();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 17 15:19:38 GMT 2023
    - 4.6K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/AbstractFuture.java

      public String toString() {
        // TODO(cpovirk): Presize to something plausible?
        StringBuilder builder = new StringBuilder();
        if (getClass().getName().startsWith("com.google.common.util.concurrent.")) {
          builder.append(getClass().getSimpleName());
        } else {
          builder.append(getClass().getName());
        }
        builder.append('@').append(toHexString(identityHashCode(this))).append("[status=");
        if (isCancelled()) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 22 21:17:24 GMT 2024
    - 63K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/util/concurrent/FuturesTransformAsyncTest.java

        ListenableFuture<String> chain = buildChainingFuture(badInput);
        ExecutionException e = assertThrows(ExecutionException.class, () -> chain.get());
        assertSame(RuntimeException.class, e.getCause().getClass());
      }
    
      /** Proxy to throw a {@link RuntimeException} out of the {@link #get()} method. */
      public static class BadFuture extends SimpleForwardingListenableFuture<Integer> {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 6.1K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/base/Strings.java

          String objectToString =
              o.getClass().getName() + '@' + Integer.toHexString(System.identityHashCode(o));
          // Logger is created inline with fixed name to avoid forcing Proguard to create another class.
          Logger.getLogger("com.google.common.base.Strings")
              .log(WARNING, "Exception during lenientFormat for " + objectToString, e);
          return "<" + objectToString + " threw " + e.getClass().getName() + ">";
        }
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Apr 09 00:49:18 GMT 2021
    - 12.3K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/reflect/SubtypeTester.java

            // The raw class isn't even a subclass.
          }
        }
        return null;
      }
    
      final void testAllDeclarations() throws Exception {
        checkState(method == null);
        Method[] methods = getClass().getMethods();
        Arrays.sort(
            methods,
            new Comparator<Method>() {
              @Override
              public int compare(Method a, Method b) {
                return a.getName().compareTo(b.getName());
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 6.1K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/ListsTest.java

            "partition should be RandomAccess, but not: " + partitions.getClass(),
            partitions instanceof RandomAccess);
    
        assertTrue(
            "partition[0] should be RandomAccess, but not: " + partitions.get(0).getClass(),
            partitions.get(0) instanceof RandomAccess);
    
        assertTrue(
            "partition[1] should be RandomAccess, but not: " + partitions.get(1).getClass(),
            partitions.get(1) instanceof RandomAccess);
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 35.2K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

          oos.flush();
          oos.close();
          ObjectInputStream ois = new ObjectInputStream(new ByteArrayInputStream(bos.toByteArray()));
          T clone = (T) ois.readObject();
          assertSame(o.getClass(), clone.getClass());
          return clone;
        } catch (Throwable t) {
          threadUnexpectedException(t);
          return null;
        }
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 37.2K bytes
    - Viewed (0)
Back to top