Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 143 for NewInstance (0.11 sec)

  1. guava-testlib/src/com/google/common/collect/testing/ReserializingTestSetGenerator.java

        implements TestSetGenerator<E> {
    
      ReserializingTestSetGenerator(TestSetGenerator<E> delegate) {
        super(delegate);
      }
    
      public static <E> TestSetGenerator<E> newInstance(TestSetGenerator<E> delegate) {
        return new ReserializingTestSetGenerator<>(delegate);
      }
    
      @Override
      public Set<E> create(Object... elements) {
        return (Set<E>) super.create(elements);
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 01 17:18:04 UTC 2021
    - 1.4K bytes
    - Viewed (0)
  2. api/maven-api-settings/src/test/java/org/apache/maven/api/settings/SettingsTest.java

    import static org.junit.jupiter.api.Assertions.assertEquals;
    import static org.junit.jupiter.api.Assertions.assertNull;
    
    class SettingsTest {
    
        @Test
        void testSetLocalRepository() {
            Settings s = Settings.newInstance();
    
            s = s.withLocalRepository("xxx");
            assertEquals("xxx", s.getLocalRepository());
    
            s = s.withLocalRepository("yyy");
            assertEquals("yyy", s.getLocalRepository());
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Sat Apr 15 17:24:20 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  3. src/main/java/jcifs/http/Handler.java

                                handlerClass = ClassLoader.getSystemClassLoader().loadClass(className);
                            }
                            handler = (URLStreamHandler) handlerClass.newInstance();
                            break;
                        }
                        catch ( Exception ex ) {
                            log.debug("Failed to initialize handler " + className, ex);
                        }
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 6.9K bytes
    - Viewed (0)
  4. android/guava-tests/benchmark/com/google/common/util/concurrent/MonitorBenchmark.java

        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());
        }
      }
    
      @Benchmark
      void addsAndRemoves(int reps) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 2K bytes
    - Viewed (0)
  5. guava/src/com/google/common/io/BaseEncoding.java

          return (paddingChar == null) ? this : newInstance(alphabet, null);
        }
    
        @Override
        public BaseEncoding withPadChar(char padChar) {
          if (8 % alphabet.bitsPerChar == 0
              || (paddingChar != null && paddingChar.charValue() == padChar)) {
            return this;
          } else {
            return newInstance(alphabet, padChar);
          }
        }
    
        @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 41.8K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/es/user/exbhv/GroupBhv.java

        }
    
        @Override
        protected <RESULT extends Group> RESULT createEntity(final Map<String, Object> source, final Class<? extends RESULT> entityType) {
            try {
                final RESULT result = entityType.newInstance();
                result.setName(DfTypeUtil.toString(source.get("name")));
                result.setAttributes(source.entrySet().stream().filter(e -> !"name".equals(e.getKey()))
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  7. compat/maven-embedder/src/main/java/org/eclipse/sisu/plexus/PlexusXmlBeanConverter.java

            // convert to a collection first then convert that into an array
            final Collection<?> collection = parseCollection(parser, toType);
            final Object array = Array.newInstance(toType.getRawType(), collection.size());
    
            int i = 0;
            for (final Object element : collection) {
                Array.set(array, i++, element);
            }
    
            return array;
        }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/core/lang/ClassUtil.java

         *             このコンストラクタが列挙型に関連している場合
         * @see Constructor#newInstance(Object[])
         */
        public static <T> T newInstance(final Class<T> clazz) throws InstantiationRuntimeException, IllegalAccessRuntimeException {
            assertArgumentNotNull("clazz", clazz);
    
            try {
                return clazz.newInstance();
            } catch (final InstantiationException e) {
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 27.5K bytes
    - Viewed (0)
  9. okhttp-android/src/test/kotlin/okhttp3/android/ShadowDnsResolver.kt

      ) {
        responder(Request(network, domain, nsType, flags, callback))
      }
    
      companion object {
        @Implementation
        @JvmStatic
        fun getInstance(): DnsResolver = Shadow.newInstance(DnsResolver::class.java, arrayOf(), arrayOf())
      }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 22 20:07:09 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/core/xml/SAXParserFactoryUtilTest.java

         * {@link SAXParserFactoryUtil#setXIncludeAware}のテストです。
         *
         * @throws Exception
         */
        public void testSetXIncludeAware() throws Exception {
            final SAXParserFactory spf = SAXParserFactoryUtil.newInstance();
            SAXParserFactoryUtil.setXIncludeAware(spf, true);
            spf.setNamespaceAware(true);
            final SAXParser parser = SAXParserFactoryUtil.newSAXParser(spf);
    
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 2.4K bytes
    - Viewed (0)
Back to top