- Sort Score
- Result 10 results
- Languages All
Results 111 - 120 of 161 for setMethod (0.15 sec)
-
guava/src/com/google/common/reflect/Invokable.java
* which may be a subtype of the declaring class. For example: * * <pre>{@code * Method getMethod = List.class.getMethod("get", int.class); * Invokable<List<String>, ?> invokable = new TypeToken<List<String>>() {}.method(getMethod); * assertEquals(TypeToken.of(String.class), invokable.getReturnType()); // Not Object.class!
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Dec 14 20:35:03 UTC 2023 - 19.6K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/features/FeatureUtil.java
Feature<?>[] presentFeatures; Feature<?>[] absentFeatures; try { presentFeatures = (Feature<?>[]) annotationClass.getMethod("value").invoke(testerAnnotation); absentFeatures = (Feature<?>[]) annotationClass.getMethod("absent").invoke(testerAnnotation); } catch (Exception e) { throw new IllegalArgumentException("Error extracting features from tester annotation.", e); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 05 22:05:05 UTC 2024 - 12.2K bytes - Viewed (0) -
okhttp-tls/src/main/kotlin/okhttp3/tls/internal/InsecureAndroidTrustManager.kt
private val delegate: X509TrustManager, private val insecureHosts: List<String>, ) : X509TrustManager { private val checkServerTrustedMethod: Method? = try { delegate::class.java.getMethod( "checkServerTrusted", Array<X509Certificate>::class.java, String::class.java, String::class.java, ) } catch (_: NoSuchMethodException) { null }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 2.4K bytes - Viewed (0) -
compat/maven-model-builder/src/main/java/org/apache/maven/model/interpolation/reflection/ClassMap.java
// if this class is public, then try to get it if ((clazz.getModifiers() & Modifier.PUBLIC) != 0) { try { return clazz.getMethod(name, paramTypes); } catch (NoSuchMethodException e) { // If the class does not have the method, then neither its superclass // nor any of its interfaces has it so quickly return null.
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 13.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/eventbus/DispatcherTest.java
.inOrder(); } private static Subscriber subscriber( EventBus bus, Object target, String methodName, Class<?> eventType) { try { return Subscriber.create(bus, target, target.getClass().getMethod(methodName, eventType)); } catch (NoSuchMethodException e) { throw new AssertionError(e); } } public final class IntegerSubscriber { private final String name;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Apr 27 15:41:25 UTC 2022 - 5.6K bytes - Viewed (0) -
build-logic/documentation/src/main/groovy/gradlebuild/docs/UserGuideTransformTask.groovy
} String methodName = element.'@method' def classMetaData = linkRepository.get(className) LinkMetaData linkMetaData = methodName ? classMetaData.getMethod(methodName) : classMetaData.classLink String style = element.'@style' ?: linkMetaData.style.toString().toLowerCase(Locale.ROOT) Element ulinkElement = doc.createElement('ulink')
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Mon Aug 19 15:07:24 UTC 2024 - 5.6K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/MapMergeTester.java
*/ @J2ktIncompatible @GwtIncompatible // reflection public static Method getMergeNullValueMethod() { return Helpers.getMethod(MapMergeTester.class, "testMergeNullValue"); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 31 14:51:04 UTC 2024 - 6.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ImmutableMultimapTest.java
public void testNulls() throws Exception { NullPointerTester tester = new NullPointerTester(); tester.testAllPublicStaticMethods(ImmutableMultimap.class); tester.ignore(ImmutableListMultimap.class.getMethod("get", Object.class)); tester.testAllPublicInstanceMethods(ImmutableMultimap.of()); tester.testAllPublicInstanceMethods(ImmutableMultimap.of("a", 1)); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 6.8K bytes - Viewed (0) -
src/test/java/org/codelibs/core/lang/ClassUtilTest.java
} /** * @throws Exception */ @Test(expected = EmptyArgumentException.class) public void testGetMethod_EmptyName() throws Exception { ClassUtil.getMethod(getClass(), ""); } /** * */ @Test public void testGetPrimitiveClass() { assertThat(ClassUtil.getPrimitiveClass(Integer.class), is(sameClass(int.class)));
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 6.2K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/Helpers.java
super("two"); // from TestStringSortedMapGenerator's sample keys } } @J2ktIncompatible @GwtIncompatible // reflection public static Method getMethod(Class<?> clazz, String name) { try { return clazz.getMethod(name); } catch (Exception e) { throw new IllegalArgumentException(e); } }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 17.5K bytes - Viewed (0)