Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 10 for toLineString (0.06 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. src/main/java/org/codelibs/fess/dict/mapping/CharMappingItem.java

         * If the item has pending updates, the new values are used; otherwise, the current values are used.
         *
         * @return compact string representation of the mapping rule
         */
        public String toLineString() {
            if (isUpdated()) {
                return StringUtils.join(newInputs, ",") + "=>" + newOutput;
            }
            return StringUtils.join(inputs, ",") + "=>" + output;
        }
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Nov 20 07:09:00 GMT 2025
    - 7.9K bytes
    - Click Count (0)
  6. src/main/java/org/codelibs/fess/dict/kuromoji/KuromojiFile.java

            public KuromojiItem write(final KuromojiItem oldItem) {
                try {
                    if (item == null || item.getId() != oldItem.getId() || !item.isUpdated()) {
                        writer.write(oldItem.toLineString());
                        writer.write(Constants.LINE_SEPARATOR);
                        return oldItem;
                    }
                    if (!item.equals(oldItem)) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Nov 20 07:09:00 GMT 2025
    - 11.7K bytes
    - Click Count (0)
  7. src/test/java/org/codelibs/fess/dict/mapping/CharMappingItemTest.java

            assertEquals("new1,new2,new3=>newOutput", item.toLineString());
        }
    
        @Test
        public void test_toLineString_withSingleInput() {
            String[] inputs = { "single" };
            CharMappingItem item = new CharMappingItem(1L, inputs, "output");
    
            assertEquals("single=>output", item.toLineString());
        }
    
        @Test
        public void test_toLineString_withEmptyInputs() {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 16K bytes
    - Click Count (0)
  8. src/main/java/org/codelibs/fess/dict/synonym/SynonymFile.java

            public SynonymItem write(final SynonymItem oldItem) {
                try {
                    if (item == null || item.getId() != oldItem.getId() || !item.isUpdated()) {
                        writer.write(oldItem.toLineString());
                        writer.write(Constants.LINE_SEPARATOR);
                        return oldItem;
                    }
                    if (!item.equals(oldItem)) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Nov 20 07:09:00 GMT 2025
    - 15.9K bytes
    - Click Count (0)
  9. src/main/java/org/codelibs/fess/dict/mapping/CharMappingFile.java

            public CharMappingItem write(final CharMappingItem oldItem) {
                try {
                    if (item == null || item.getId() != oldItem.getId() || !item.isUpdated()) {
                        writer.write(oldItem.toLineString());
                        writer.write(Constants.LINE_SEPARATOR);
                        return oldItem;
                    }
                    if (!item.equals(oldItem)) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Dec 20 05:56:45 GMT 2025
    - 15.3K bytes
    - Click Count (0)
  10. src/test/java/org/codelibs/fess/dict/mapping/CharMappingFileTest.java

            // Debug: print what we actually got
            if (result.size() > 0) {
                for (CharMappingItem item : result) {
                    System.out.println("Unexpected item: " + item.toLineString());
                }
            }
    
            // An empty file should return no items
            assertEquals("Empty file should have no items", 0, result.size());
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 18.9K bytes
    - Click Count (0)
Back to Top