Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for getAnnotation (0.27 sec)

  1. guava-testlib/test/com/google/common/collect/testing/features/FeatureEnumTest.java

        assertNotNull(
            rootLocaleFormat("%s must be annotated with @TesterAnnotation.", annotationClass),
            annotationClass.getAnnotation(TesterAnnotation.class));
        final Retention retentionPolicy = annotationClass.getAnnotation(Retention.class);
        assertNotNull(
            rootLocaleFormat("%s must have a @Retention annotation.", annotationClass),
            retentionPolicy);
        assertEquals(
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.4K bytes
    - Viewed (0)
  2. android/guava-testlib/test/com/google/common/collect/testing/features/FeatureEnumTest.java

        assertNotNull(
            rootLocaleFormat("%s must be annotated with @TesterAnnotation.", annotationClass),
            annotationClass.getAnnotation(TesterAnnotation.class));
        final Retention retentionPolicy = annotationClass.getAnnotation(Retention.class);
        assertNotNull(
            rootLocaleFormat("%s must have a @Retention annotation.", annotationClass),
            retentionPolicy);
        assertEquals(
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.4K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/reflect/Parameter.java

        return declaration;
      }
    
      @Override
      public boolean isAnnotationPresent(Class<? extends Annotation> annotationType) {
        return getAnnotation(annotationType) != null;
      }
    
      @Override
      @CheckForNull
      public <A extends Annotation> A getAnnotation(Class<A> annotationType) {
        checkNotNull(annotationType);
        for (Annotation annotation : annotations) {
          if (annotationType.isInstance(annotation)) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Nov 16 15:12:31 GMT 2023
    - 4.3K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/reflect/SubtypeTester.java

      final <T> T isSubtype(T sub) {
        Type returnType = method.getGenericReturnType();
        Type paramType = getOnlyParameterType();
        TestSubtype spec = method.getAnnotation(TestSubtype.class);
        assertWithMessage("%s is subtype of %s", paramType, returnType)
            .that(TypeToken.of(paramType).isSubtypeOf(returnType))
            .isTrue();
    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)
  5. android/guava-tests/test/com/google/common/reflect/SubtypeTester.java

      final <T> T isSubtype(T sub) {
        Type returnType = method.getGenericReturnType();
        Type paramType = getOnlyParameterType();
        TestSubtype spec = method.getAnnotation(TestSubtype.class);
        assertWithMessage("%s is subtype of %s", paramType, returnType)
            .that(TypeToken.of(paramType).isSubtypeOf(returnType))
            .isTrue();
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 6.1K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/core/lang/AnnotationUtilTest.java

         */
        @Hoge(bbb = "3")
        @Test
        public void testGetProperties() throws Exception {
            final Method m = ClassUtil.getMethod(getClass(), "testGetProperties");
            final Annotation anno = m.getAnnotation(Hoge.class);
            final Map<String, Object> props = AnnotationUtil.getProperties(anno);
            assertThat((String) props.get("aaa"), is("123"));
            assertThat((String) props.get("bbb"), is("3"));
    Java
    - Registered: Fri Apr 26 20:58:09 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 1.5K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/eventbus/Subscriber.java

       * Checks whether {@code method} is thread-safe, as indicated by the presence of the {@link
       * AllowConcurrentEvents} annotation.
       */
      private static boolean isDeclaredThreadSafe(Method method) {
        return method.getAnnotation(AllowConcurrentEvents.class) != null;
      }
    
      /**
       * Subscriber that synchronizes invocations of a method to ensure that only one thread may enter
       * the method at a time.
       */
      @VisibleForTesting
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Oct 06 00:47:57 GMT 2021
    - 4.7K bytes
    - Viewed (0)
  8. build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/metadata/KotlinMetadataQueries.kt

                    extraInt = annotation.getMemberValue("xi")?.intValue ?: 0
                )
            }
    
        private
        inline fun <reified T : Any> CtClass.ctAnnotation(): Annotation? =
            getAnnotation(T::class.java)
                ?.takeIf { Proxy.isProxyClass(it::class.java) }
                ?.let { Proxy.getInvocationHandler(it) as? AnnotationImpl }
                ?.annotation
    
        private
    Plain Text
    - Registered: Wed Apr 24 11:36:11 GMT 2024
    - Last Modified: Wed Jun 07 08:20:38 GMT 2023
    - 4.6K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/reflect/Invokable.java

      }
    
      @Override
      @CheckForNull
      public final <A extends Annotation> A getAnnotation(Class<A> annotationClass) {
        return accessibleObject.getAnnotation(annotationClass);
      }
    
      @Override
      public final Annotation[] getAnnotations() {
        return accessibleObject.getAnnotations();
      }
    
      @Override
      public final Annotation[] getDeclaredAnnotations() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Dec 14 20:35:03 GMT 2023
    - 18.6K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/base/Enums.java

      /**
       * Returns the {@link Field} in which {@code enumValue} is defined. For example, to get the {@code
       * Description} annotation on the {@code GOLF} constant of enum {@code Sport}, use {@code
       * Enums.getField(Sport.GOLF).getAnnotation(Description.class)}.
       *
       * @since 12.0
       */
      @GwtIncompatible // reflection
      public static Field getField(Enum<?> enumValue) {
        Class<?>
            clazz = enumValue.getDeclaringClass();
        try {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 26 11:56:44 GMT 2023
    - 5K bytes
    - Viewed (0)
Back to top