Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for concatName (0.06 sec)

  1. src/test/java/org/codelibs/core/io/TraverserUtilTest.java

            assertThat(traverser.isExistClass(TestCase.class.getName()), is(not(true)));
    
            final Set<String> set = new HashSet<String>();
            traverser.forEach((ClassHandler) (packageName, shortClassName) -> set.add(ClassUtil.concatName(packageName, shortClassName)));
            assertThat(set.size() > 0, is(true));
            assertThat(set.contains(DummyTest.class.getName()), is(true));
            assertThat(set.contains(TraverserUtilTest.class.getName()), is(true));
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/core/io/ClassTraversalTest.java

            ClassTraversalUtil.forEach(con.getJarFile(), (ClassHandler) (packageName, shortClassName) -> {
                if (count < 10) {
                    System.out.println(ClassUtil.concatName(packageName, shortClassName));
                }
                assertThat(packageName, is(notNullValue()));
                assertThat(shortClassName, is(notNullValue()));
                assertThat(packageName,
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/core/lang/ClassUtilTest.java

            assertThat(ClassUtil.concatName("aaa", "bbb"), is("aaa.bbb"));
            assertThat(ClassUtil.concatName("aaa", null), is("aaa"));
            assertThat(ClassUtil.concatName("aaa", ""), is("aaa"));
            assertThat(ClassUtil.concatName(null, "bbb"), is("bbb"));
            assertThat(ClassUtil.concatName("", "bbb"), is("bbb"));
            assertThat(ClassUtil.concatName("", "bbb"), is("bbb"));
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/core/io/TraversalUtil.java

            }
    
            @Override
            public boolean isExistClass(final String className) {
                final File file = new File(baseDir, toClassFile(ClassUtil.concatName(rootPackage, className)));
                return file.exists();
            }
    
            @Override
            public void forEach(final ClassHandler handler) {
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 19.5K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/io/ClassTraversalUtil.java

            for (final File file : dir.listFiles()) {
                final String fileName = file.getName();
                if (file.isDirectory()) {
                    traverseFileSystem(file, ClassUtil.concatName(packageName, fileName), handler);
                } else if (fileName.endsWith(".class")) {
                    final String shortClassName = fileName.substring(0, fileName.length() - CLASS_SUFFIX.length());
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/core/lang/ClassUtil.java

        }
    
        /**
         * クラス名の要素を結合します。
         *
         * @param s1
         *            クラス名の要素1
         * @param s2
         *            クラス名の要素2
         * @return 結合された名前
         */
        public static String concatName(final String s1, final String s2) {
            if (StringUtil.isEmpty(s1) && StringUtil.isEmpty(s2)) {
                return null;
            }
            if (!StringUtil.isEmpty(s1) && StringUtil.isEmpty(s2)) {
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 27.5K bytes
    - Viewed (0)
Back to top