Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 27 for getDeclaringClass (0.44 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/FeatureSpecificTestSuiteBuilder.java

          Object featureAsObject = feature; // to work around bogus JDK warning
          if (featureAsObject instanceof Enum) {
            Enum<?> f = (Enum<?>) featureAsObject;
            temp.add(f.getDeclaringClass().getSimpleName() + "." + feature);
          } else {
            temp.add(feature.toString());
          }
        }
        return temp.toString();
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 10.2K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/features/FeatureUtil.java

          throws ConflictingRequirementsException {
        TesterRequirements clonedClassRequirements =
            new TesterRequirements(getTesterRequirements(testerMethod.getDeclaringClass()));
        TesterRequirements declaredRequirements = buildDeclaredTesterRequirements(testerMethod);
        return incorporateRequirements(clonedClassRequirements, declaredRequirements, testerMethod);
      }
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 21 15:08:35 GMT 2022
    - 12.1K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/reflect/InvokableTest.java

          Invokable<A, A> invokable = Invokable.from(constructor);
          assertEquals(constructor.getName(), invokable.getName());
          assertEquals(A.class, invokable.getDeclaringClass());
          return invokable;
        }
    
        static Invokable<?, Object> method(String name, Class<?>... parameterTypes) throws Exception {
          Invokable<?, Object> invokable =
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 30.9K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/Platform.java

       */
      @J2ktIncompatible
      static MapMaker tryWeakKeys(MapMaker mapMaker) {
        return mapMaker.weakKeys();
      }
    
      static <E extends Enum<E>> Class<E> getDeclaringClassOrObjectForJ2cl(E e) {
        return e.getDeclaringClass();
      }
    
      static int reduceIterationsIfGwt(int iterations) {
        return iterations;
      }
    
      static int reduceExponentIfGwt(int exponent) {
        return exponent;
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 4.9K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/reflect/Types.java

        static {
          ImmutableMap.Builder<String, Method> builder = ImmutableMap.builder();
          for (Method method : TypeVariableImpl.class.getMethods()) {
            if (method.getDeclaringClass().equals(TypeVariableImpl.class)) {
              try {
                method.setAccessible(true);
              } catch (AccessControlException e) {
    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)
  6. guava-tests/test/com/google/common/util/concurrent/RateLimiterTest.java

        for (Method method : RateLimiter.class.getMethods()) {
          if (!isStatic(method.getModifiers())
              && !NOT_WORKING_ON_MOCKS.contains(method.getName())
              && !method.getDeclaringClass().equals(Object.class)) {
            method.invoke(mock, arbitraryParameters(method));
          }
        }
      }
    
      private static Object[] arbitraryParameters(Method method) {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 21.6K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/EnumMultiset.java

        Iterator<E> iterator = elements.iterator();
        checkArgument(iterator.hasNext(), "EnumMultiset constructor passed empty Iterable");
        EnumMultiset<E> multiset = new EnumMultiset<>(iterator.next().getDeclaringClass());
        Iterables.addAll(multiset, elements);
        return multiset;
      }
    
      /**
       * Returns a new {@code EnumMultiset} instance containing the given elements. Unlike {@link
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 9.3K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/collect/testing/features/FeatureUtil.java

          throws ConflictingRequirementsException {
        TesterRequirements clonedClassRequirements =
            new TesterRequirements(getTesterRequirements(testerMethod.getDeclaringClass()));
        TesterRequirements declaredRequirements = buildDeclaredTesterRequirements(testerMethod);
        return incorporateRequirements(clonedClassRequirements, declaredRequirements, testerMethod);
      }
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 21 15:08:35 GMT 2022
    - 12.1K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/util/concurrent/RateLimiterTest.java

        for (Method method : RateLimiter.class.getMethods()) {
          if (!isStatic(method.getModifiers())
              && !NOT_WORKING_ON_MOCKS.contains(method.getName())
              && !method.getDeclaringClass().equals(Object.class)) {
            method.invoke(mock, arbitraryParameters(method));
          }
        }
      }
    
      private static Object[] arbitraryParameters(Method method) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 21.6K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/testing/NullPointerTester.java

       * UnsupportedOperationException} whenever <i>any</i> of its non-nullable parameters are null.
       */
      public void testConstructor(Constructor<?> ctor) {
        Class<?> declaringClass = ctor.getDeclaringClass();
        checkArgument(
            Modifier.isStatic(declaringClass.getModifiers())
                || declaringClass.getEnclosingClass() == null,
            "Cannot test constructor of non-static inner class: %s",
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Nov 16 15:12:31 GMT 2023
    - 22.8K bytes
    - Viewed (0)
Back to top