Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for CharMappingItem (0.41 sec)

  1. src/main/java/org/codelibs/fess/dict/mapping/CharMappingItem.java

        /**
         * Calculates the hash code for this CharMappingItem based on inputs and output.
         *
         * @return the hash code value for this object
         */
        @Override
        public int hashCode() {
            return Objects.hash(Arrays.hashCode(inputs), output);
        }
    
        /**
         * Compares this CharMappingItem with another object for equality.
         * Two CharMappingItem objects are equal if they have the same inputs and output.
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 7.6K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/app/service/CharMappingService.java

         * @param charMappingItem the character mapping item to store
         */
        public void store(final String dictId, final CharMappingItem charMappingItem) {
            getCharMappingFile(dictId).ifPresent(file -> {
                if (charMappingItem.getId() == 0) {
                    file.insert(charMappingItem);
                } else {
                    file.update(charMappingItem);
                }
            });
        }
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 6.1K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/dict/mapping/CharMappingFile.java

                        }
                        continue;
                    }
    
                    id++;
                    final CharMappingItem item = new CharMappingItem(id, inputs, output);
    
                    if (updater != null) {
                        final CharMappingItem newItem = updater.write(item);
                        if (newItem != null) {
                            itemList.add(newItem);
                        } else {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 14.9K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/app/web/admin/dict/mapping/AdminDictMappingAction.java

        //                                                                        ============
    
        private static OptionalEntity<CharMappingItem> getEntity(final CreateForm form) {
            switch (form.crudMode) {
            case CrudMode.CREATE:
                final CharMappingItem entity = new CharMappingItem(0, StringUtil.EMPTY_STRINGS, StringUtil.EMPTY);
                return OptionalEntity.of(entity);
            case CrudMode.EDIT:
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 22.3K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/dict/mapping/CharMappingItemTest.java

            String[] inputs2 = { "a", "b" };
            String[] inputs3 = { "c", "d" };
    
            CharMappingItem item1 = new CharMappingItem(1L, inputs1, "output");
            CharMappingItem item2 = new CharMappingItem(2L, inputs2, "output");
            CharMappingItem item3 = new CharMappingItem(3L, inputs3, "output");
            CharMappingItem item4 = new CharMappingItem(4L, inputs1, "different");
    
            // Same inputs and output should have same hash code
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 12.2K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/dict/mapping/CharMappingFileTest.java

            assertEquals(1L, item1.getId());
            assertArrayEquals(new String[] { "a", "b" }, item1.getInputs());
            assertEquals("c", item1.getOutput());
    
            OptionalEntity<CharMappingItem> result2 = charMappingFile.get(2L);
            assertTrue(result2.isPresent());
            CharMappingItem item2 = result2.get();
            assertEquals(2L, item2.getId());
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 18.5K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/app/web/api/admin/dict/mapping/ApiAdminDictMappingAction.java

                    });
        }
    
        /**
         * Create an EditBody DTO from a CharMappingItem entity.
         *
         * @param entity source entity with mapping data
         * @param dictId identifier of the dictionary
         * @return populated EditBody for API responses
         */
        protected EditBody createEditBody(final CharMappingItem entity, final String dictId) {
            final EditBody body = new EditBody();
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 9.5K bytes
    - Viewed (0)
Back to top