Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 19 for toLineString (0.08 seconds)

  1. src/test/java/org/codelibs/fess/dict/kuromoji/KuromojiItemTest.java

            assertEquals("t1,s1,r1,p1", new KuromojiItem(1, "t1", "s1", "r1", "p1").toLineString());
            assertEquals("t\"\"1,s\"\"1,r\"\"1,p\"\"1", new KuromojiItem(1, "t\"1", "s\"1", "r\"1", "p\"1").toLineString());
            assertEquals("\"t,1\",\"s,1\",\"r,1\",\"p,1\"", new KuromojiItem(1, "t,1", "s,1", "r,1", "p,1").toLineString());
            assertEquals("\"t\"\",1\",\"s\"\",1\",\"r\"\",1\",\"p\"\",1\"",
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 08:43:05 GMT 2026
    - 3.1K bytes
    - Click Count (0)
  2. src/test/java/org/codelibs/fess/dict/stemmeroverride/StemmerOverrideItemTest.java

        }
    
        @Test
        public void test_toLineString() {
            assertEquals("aaa=>a", new StemmerOverrideItem(1, "aaa", "a").toLineString());
            assertEquals("=>", new StemmerOverrideItem(1, "", "").toLineString());
        }
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 08:43:05 GMT 2026
    - 2.6K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/fess/dict/stopwords/StopwordsItemTest.java

            // When newInput is set back to null
            item.setNewInput(null);
            assertEquals("original", item.toLineString());
        }
    
        @Test
        public void test_toLineString_withEmptyInput() {
            // Test toLineString with empty original input
            StopwordsItem item = new StopwordsItem(1, "");
            assertEquals("", item.toLineString());
    
            item.setNewInput("new");
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 11.4K bytes
    - Click Count (0)
  4. src/test/java/org/codelibs/fess/dict/protwords/ProtwordsItemTest.java

            // Test with item created with id=0
            ProtwordsItem newItem = new ProtwordsItem(0, "newword");
            assertEquals("newword", newItem.toLineString());
        }
    
        @Test
        public void test_toLineString_withEmptyInput() {
            // Test toLineString with empty input
            ProtwordsItem item = new ProtwordsItem(1, "");
            assertEquals("", item.toLineString());
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 10.7K bytes
    - Click Count (0)
  5. src/test/java/org/codelibs/fess/dict/synonym/SynonymItemTest.java

            assertEquals("a=>b", new SynonymItem(1, new String[] { "a" }, new String[] { "b" }).toLineString());
            assertEquals("A,a=>B,b", new SynonymItem(1, new String[] { "A", "a" }, new String[] { "B", "b" }).toLineString());
            assertEquals("A,a", new SynonymItem(1, new String[] { "A", "a" }, new String[] { "A", "a" }).toLineString());
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 08:43:05 GMT 2026
    - 8K bytes
    - Click Count (1)
  6. src/main/java/org/codelibs/fess/dict/protwords/ProtwordsItem.java

        }
    
        /**
         * Converts this item to a string representation for writing to file.
         * @return the string representation of this item
         */
        public String toLineString() {
            if (isUpdated()) {
                return StringUtils.join(newInput);
            }
            return StringUtils.join(input);
        }
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Nov 20 07:09:00 GMT 2025
    - 3.4K bytes
    - Click Count (0)
  7. src/main/java/org/codelibs/fess/dict/stemmeroverride/StemmerOverrideItem.java

        }
    
        /**
         * Converts the item to a string representation for writing to a file.
         *
         * @return A string in the format "input=>output".
         */
        public String toLineString() {
            if (isUpdated()) {
                return newInput + "=>" + newOutput;
            }
            return input + "=>" + output;
        }
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Jul 17 08:28:31 GMT 2025
    - 4.3K bytes
    - Click Count (0)
  8. src/main/java/org/codelibs/fess/dict/stopwords/StopwordsItem.java

        }
    
        /**
         * Converts the item to a string representation for writing to a file.
         *
         * @return The stopword as a string.
         */
        public String toLineString() {
            if (isUpdated()) {
                return StringUtils.join(newInput);
            }
            return StringUtils.join(input);
        }
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Nov 20 07:09:00 GMT 2025
    - 3.5K bytes
    - Click Count (0)
  9. src/main/java/org/codelibs/fess/dict/synonym/SynonymItem.java

        }
    
        /**
         * Converts the item to a string representation for writing to a file.
         *
         * @return A string in the format "input1,input2=>output1,output2".
         */
        public String toLineString() {
            if (isUpdated()) {
                if (Arrays.equals(newInputs, newOutputs)) {
                    return StringUtils.join(newInputs, ",");
                }
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Nov 20 07:09:00 GMT 2025
    - 6K bytes
    - Click Count (0)
  10. src/main/java/org/codelibs/fess/dict/kuromoji/KuromojiItem.java

        }
    
        /**
         * Returns the item as a line string.
         *
         * @return The item as a line string.
         */
        public String toLineString() {
            final StringBuilder buf = new StringBuilder(100);
            if (isUpdated()) {
                buf.append(quoteEscape(newToken));
                buf.append(',');
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Jul 17 08:28:31 GMT 2025
    - 6.3K bytes
    - Click Count (0)
Back to Top