Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 31 for getDeclaringClass (0.14 sec)

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

       *
       * @since 12.0
       */
      @GwtIncompatible // reflection
      public static Field getField(Enum<?> enumValue) {
        Class<?>
            clazz = enumValue.getDeclaringClass();
        try {
          return clazz.getDeclaredField(enumValue.name());
        } catch (NoSuchFieldException impossible) {
          throw new AssertionError(impossible);
        }
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri May 26 11:56:44 UTC 2023
    - 5K bytes
    - Viewed (0)
  2. compat/maven-model-builder/src/test/java/org/apache/maven/model/building/BuildModelSourceTransformerTest.java

                for (PropertyDescriptor prop : bean.getPropertyDescriptors()) {
                    if (("first".equals(prop.getName()) || "last".equals(prop.getName()))
                            && List.class.equals(prop.getReadMethod().getDeclaringClass())) {
                        continue;
                    }
                    Object p1 = prop.getReadMethod().invoke(m1);
                    Object p2 = prop.getReadMethod().invoke(m2);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/WriteReplaceOverridesTest.java

                              // Only package-private methods are a problem.
                              && (m.getModifiers() & (PUBLIC | PROTECTED | PRIVATE)) == 0)
                  .transform(Method::getDeclaringClass);
          if (!supersWithPackagePrivateWriteReplace.isPresent()) {
            continue;
          }
          assertWithMessage(
                  "To help optimizers, any class that inherits a package-private writeReplace() method"
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 18:53:31 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  4. 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",
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 23.2K bytes
    - Viewed (0)
  5. 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;
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Aug 06 17:52:51 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  6. 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;
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Aug 06 17:52:51 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  7. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/Platform.java

       */
      @JsMethod
      @SuppressWarnings("unusable-by-js")
      private static native <E extends Enum<E>> @Nullable Class<E> getDeclaringClassOrNullForJ2cl(
          E e) /*-{
        return ******@****.***::getDeclaringClass()();
      }-*/;
    
      static int reduceIterationsIfGwt(int iterations) {
        return iterations / 10;
      }
    
      static int reduceExponentIfGwt(int exponent) {
        return exponent / 2;
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Aug 06 17:52:51 UTC 2024
    - 5K bytes
    - Viewed (0)
  8. 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);
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 05 22:05:05 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  9. guava/src/com/google/common/util/concurrent/CycleDetectingLockFactory.java

       * For the given Enum value {@code rank}, returns the value's {@code "EnumClass.name"}, which is
       * used in exception and warning output.
       */
      private static String getLockName(Enum<?> rank) {
        return rank.getDeclaringClass().getSimpleName() + "." + rank.name();
      }
    
      /**
       * A {@code CycleDetectingLockFactory.WithExplicitOrdering} provides the additional enforcement of
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Dec 15 19:31:54 UTC 2023
    - 35.9K bytes
    - Viewed (0)
  10. android/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 =
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 13:00:28 UTC 2024
    - 30.7K bytes
    - Viewed (0)
Back to top