- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 318 for Constructor (0.19 sec)
-
android/guava/src/com/google/common/util/concurrent/FuturesGetChecked.java
ORDERING_BY_CONSTRUCTOR_PARAMETER_LIST.onResultOf( constructor -> asList(constructor.getParameterTypes())); @CheckForNull private static <X> X newFromConstructor(Constructor<X> constructor, Throwable cause) { Class<?>[] paramTypes = constructor.getParameterTypes(); Object[] params = new Object[paramTypes.length]; for (int i = 0; i < paramTypes.length; i++) {
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Thu Dec 14 20:35:03 GMT 2023 - 10.3K bytes - Viewed (0) -
android/guava/src/com/google/common/reflect/Invokable.java
return method.isVarArgs(); } } static class ConstructorInvokable<T> extends Invokable<T, T> { final Constructor<?> constructor; ConstructorInvokable(Constructor<?> constructor) { super(constructor); this.constructor = constructor; } @Override final Object invokeInternal(@CheckForNull Object receiver, @Nullable Object[] args)
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) -
android/guava-tests/test/com/google/common/reflect/InvokableTest.java
public final void publicFinalMethod() {} void notAnnotatedMethod() {} static Invokable<A, A> constructor() throws Exception { Constructor<A> constructor = A.class.getDeclaredConstructor(Object.class); Invokable<A, A> invokable = Invokable.from(constructor); assertEquals(constructor.getName(), invokable.getName()); assertEquals(A.class, invokable.getDeclaringClass()); return invokable; }
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Tue Feb 20 17:00:05 GMT 2024 - 30.8K bytes - Viewed (0) -
guava-testlib/src/com/google/common/testing/ClassSanityTester.java
factories.add(factory); } } if (!Modifier.isAbstract(type.getRawType().getModifiers())) { for (Constructor<?> constructor : type.getRawType().getDeclaredConstructors()) { Invokable<T, T> invokable = type.constructor(constructor); if (!invokable.isPrivate() && !invokable.isSynthetic()) { factories.add(invokable); } } }
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Thu Feb 08 17:31:55 GMT 2024 - 33K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/NullPointerTester.java
*/ public void testConstructors(Class<?> c, Visibility minimalVisibility) { for (Constructor<?> constructor : c.getDeclaredConstructors()) { if (minimalVisibility.isVisible(constructor) && !isIgnored(constructor)) { testConstructor(constructor); } } } /** Runs {@link #testConstructor} on every public constructor in class {@code c}. */ public void testAllPublicConstructors(Class<?> c) {
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) -
guava-testlib/src/com/google/common/testing/AbstractPackageSanityTests.java
* {@link NullPointerException}. * <li>If there is any visible constructor or visible static factory method declared by the * class, all visible instance methods will be checked too using the instance created by * invoking the constructor or static factory method. * <li>If the constructor or factory method used to construct instance takes a parameter that
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Fri May 12 19:22:18 GMT 2023 - 17.5K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/UncheckedExecutionException.java
* constructor that omits the cause. */ @Deprecated protected UncheckedExecutionException() {} /** * Creates a new instance with the given detail message and no cause. * * @deprecated Prefer {@linkplain UncheckedExecutionException(String, Throwable)} a constructor
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Thu Mar 07 17:52:19 GMT 2024 - 4.1K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/util/concurrent/MonitorBenchmark.java
(useMonitor ? "com.google.common.util.concurrent.MonitorBased" : "java.util.concurrent."); String className = prefix + queueType + "BlockingQueue"; Constructor<?> constructor = Class.forName(className).getConstructor(int.class); queue = (BlockingQueue<String>) constructor.newInstance(capacity); strings = new String[capacity]; for (int i = 0; i < capacity; i++) { strings[i] = String.valueOf(Math.random()); }
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Dec 04 17:37:03 GMT 2017 - 2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/reflect/TypeTokenTest.java
Constructor<ArrayList> constructor = ArrayList.class.getConstructor(); assertEquals( TypeToken.of(ArrayList.class), TypeToken.of(ArrayList.class).constructor(constructor).getOwnerType()); assertEquals( new TypeToken<ArrayList<String>>() {}, new TypeToken<ArrayList<String>>() {}.constructor(constructor).getOwnerType()); }
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Feb 22 17:15:24 GMT 2024 - 88.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/reflect/AndroidIncompatible.java
* limitations under the License. */ package com.google.common.reflect; import static java.lang.annotation.ElementType.ANNOTATION_TYPE; import static java.lang.annotation.ElementType.CONSTRUCTOR; import static java.lang.annotation.ElementType.FIELD; import static java.lang.annotation.ElementType.METHOD; import static java.lang.annotation.ElementType.TYPE; import static java.lang.annotation.RetentionPolicy.CLASS;
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Thu Sep 15 13:47:32 GMT 2016 - 1.6K bytes - Viewed (0)