- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 18 for getConstructors (0.06 sec)
-
guava/src/com/google/common/util/concurrent/FuturesGetChecked.java
} } private static <X extends Exception> X newWithCause(Class<X> exceptionClass, Throwable cause) { // getConstructors() guarantees this as long as we don't modify the array. @SuppressWarnings({"unchecked", "rawtypes"}) List<Constructor<X>> constructors = (List) Arrays.asList(exceptionClass.getConstructors()); for (Constructor<X> constructor : preferringStringsThenThrowables(constructors)) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 01:14:59 UTC 2025 - 11.8K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/FuturesGetChecked.java
} } private static <X extends Exception> X newWithCause(Class<X> exceptionClass, Throwable cause) { // getConstructors() guarantees this as long as we don't modify the array. @SuppressWarnings({"unchecked", "rawtypes"}) List<Constructor<X>> constructors = (List) Arrays.asList(exceptionClass.getConstructors()); for (Constructor<X> constructor : preferringStringsThenThrowables(constructors)) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 01:14:59 UTC 2025 - 10.2K bytes - Viewed (0) -
src/main/java/org/codelibs/core/beans/impl/PropertyDescImpl.java
setupStringConstructor(); setupValueOfMethod(); setUpParameterizedClassDesc(); } private void setupStringConstructor() { for (final Constructor<?> con : propertyType.getConstructors()) { if (con.getParameterTypes().length == 1 && con.getParameterTypes()[0].equals(String.class)) { stringConstructor = con; break; } } }
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jul 24 01:52:43 UTC 2025 - 15.1K bytes - Viewed (0) -
src/main/java/org/codelibs/core/beans/impl/BeanDescImpl.java
} /** * Prepares the constructors. */ protected void setupConstructorDescs() { for (final Constructor<?> constructor : beanClass.getConstructors()) { constructorDescs.add(new ConstructorDescImpl(this, constructor)); } } /** * Prepares the methods. */ protected void setupMethodDescs() {
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jun 19 09:12:22 UTC 2025 - 25.8K bytes - Viewed (1) -
src/test/java/org/codelibs/core/beans/impl/ConstructorDescTest.java
final ConstructorDesc ctor = beanDesc.getConstructorDesc(); assertThat(ctor, is(notNullValue())); assertThat(ctor.getBeanDesc(), is(sameInstance(beanDesc))); assertThat(ctor.getConstructor(), is((Constructor) MyBean.class.getConstructor())); assertThat(ctor.getParameterTypes().length, is(0)); assertThat(ctor.isPublic(), is(true)); final MyBean myBean = ctor.newInstance();
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 2.9K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/tomcat/webresources/FessWebResourceRootTest.java
FessWebResourceRoot.class.getName()); // Verify constructor exists with Context parameter try { FessWebResourceRoot.class.getConstructor(Context.class); assertTrue("Constructor with Context parameter exists", true); } catch (final NoSuchMethodException e) { fail("Constructor with Context parameter should exist"); }
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 4.3K 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()); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 2.1K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/validation/FessActionValidatorTest.java
} public void test_constructorExists() { // Verify constructor exists with expected parameters try { FessActionValidator.class.getConstructor(RequestManager.class, UserMessagesCreator.class, Class[].class); assertTrue("Constructor with required parameters exists", true); } catch (final NoSuchMethodException e) {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 2.7K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/timer/HotThreadMonitorTargetTest.java
} public void test_default_constructor_is_public() throws Exception { assertTrue("Default constructor should be public", java.lang.reflect.Modifier.isPublic(HotThreadMonitorTarget.class.getConstructor().getModifiers())); } public void test_expired_method_is_public() throws Exception { assertTrue("expired method should be public",
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 4K bytes - Viewed (0) -
src/main/java/org/codelibs/core/beans/ConstructorDesc.java
*/ BeanDesc getBeanDesc(); /** * Returns the constructor. * * @param <T> * The type of the Bean * @return The constructor */ <T> Constructor<T> getConstructor(); /** * Returns an array of the parameter types of the constructor. * * @return An array of the parameter types of the constructor */ Class<?>[] getParameterTypes(); /**
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 3.5K bytes - Viewed (0)