Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for StopwordsItem (0.54 sec)

  1. src/main/java/org/codelibs/fess/dict/stopwords/StopwordsItem.java

                return false;
            }
            final StopwordsItem other = (StopwordsItem) obj;
            if (!input.equals(other.input)) {
                return false;
            }
            return true;
        }
    
        @Override
        public String toString() {
            return "StopwordsItem [id=" + id + ", inputs=" + input + ", newInputs=" + newInput + "]";
        }
    
        /**
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/app/service/StopwordsService.java

            getStopwordsFile(dictId).ifPresent(file -> {
                if (stopwordsItem.getId() == 0) {
                    file.insert(stopwordsItem);
                } else {
                    file.update(stopwordsItem);
                }
            });
        }
    
        /**
         * Deletes a stopword item from the specified dictionary.
         *
         * @param dictId        The ID of the dictionary.
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/dict/stopwords/StopwordsItemTest.java

            // Test hashCode method
            StopwordsItem item1 = new StopwordsItem(1, "test");
            StopwordsItem item2 = new StopwordsItem(1, "test");
            StopwordsItem item3 = new StopwordsItem(2, "test");
            StopwordsItem item4 = new StopwordsItem(1, "different");
    
            // Same input should have same hashCode regardless of id
            assertEquals(item1.hashCode(), item2.hashCode());
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/app/web/api/admin/dict/stopwords/ApiAdminDictStopwordsAction.java

                    });
        }
    
        /**
         * Creates an EditBody from a StopwordsItem entity for API responses.
         *
         * @param entity the StopwordsItem entity to convert
         * @param dictId the dictionary ID
         * @return the converted EditBody object
         */
        protected EditBody createEditBody(final StopwordsItem 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.3K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/dict/stopwords/StopwordsFileTest.java

        public void test_updater_updateItem() {
            loadTestData();
    
            StopwordsItem originalItem = stopwordsFile.get(1).get();
            StopwordsItem updateItem = new StopwordsItem(1, "the");
            updateItem.setNewInput("modified");
    
            StopwordsFile.StopwordsUpdater updater = stopwordsFile.new StopwordsUpdater(updateItem);
    
            StopwordsItem result = updater.write(originalItem);
            assertNotNull(result);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 17.6K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/dict/stopwords/StopwordsFile.java

        }
    
        @Override
        public synchronized OptionalEntity<StopwordsItem> get(final long id) {
            if (stopwordsItemList == null) {
                reload(null);
            }
    
            for (final StopwordsItem StopwordsItem : stopwordsItemList) {
                if (id == StopwordsItem.getId()) {
                    return OptionalEntity.of(StopwordsItem);
                }
            }
            return OptionalEntity.empty();
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 12.6K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/app/web/admin/dict/stopwords/AdminDictStopwordsAction.java

        //                                                                        ============
    
        private static OptionalEntity<StopwordsItem> getEntity(final CreateForm form) {
            switch (form.crudMode) {
            case CrudMode.CREATE:
                final StopwordsItem entity = new StopwordsItem(0, StringUtil.EMPTY);
                return OptionalEntity.of(entity);
            case CrudMode.EDIT:
                if (form instanceof EditForm) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 20.3K bytes
    - Viewed (0)
Back to top