Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 4 of 4 for ProtwordsItem (0.11 seconds)

  1. src/main/java/org/codelibs/fess/dict/protwords/ProtwordsItem.java

     */
    public class ProtwordsItem extends DictionaryItem {
        private final String input;
    
        private String newInput;
    
        /**
         * Constructor for ProtwordsItem.
         * @param id the unique identifier for this item
         * @param input the protected word input
         */
        public ProtwordsItem(final long id, final String input) {
            this.id = id;
    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)
  2. src/test/java/org/codelibs/fess/dict/protwords/ProtwordsFileTest.java

            // Create updater with a new item
            ProtwordsItem newItem = new ProtwordsItem(0, "testNew");
            ProtwordsFile.ProtwordsUpdater updater = protwordsFile.new ProtwordsUpdater(newItem);
    
            // Write an existing item (should pass through)
            ProtwordsItem existingItem = new ProtwordsItem(10, "existing");
            ProtwordsItem result = updater.write(existingItem);
    
            assertNotNull(result);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 21.2K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/fess/dict/protwords/ProtwordsItemTest.java

        }
    
        @Test
        public void test_equals() {
            // Test equals method
            ProtwordsItem item1 = new ProtwordsItem(1, "word");
            ProtwordsItem item2 = new ProtwordsItem(2, "word");
            ProtwordsItem item3 = new ProtwordsItem(1, "different");
            ProtwordsItem item4 = new ProtwordsItem(1, "word");
    
            // Same object
            assertTrue(item1.equals(item1));
    
    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)
  4. src/main/java/org/codelibs/fess/dict/protwords/ProtwordsFile.java

        }
    
        @Override
        public synchronized OptionalEntity<ProtwordsItem> get(final long id) {
            if (protwordsItemList == null) {
                reload(null);
            }
    
            for (final ProtwordsItem ProtwordsItem : protwordsItemList) {
                if (id == ProtwordsItem.getId()) {
                    return OptionalEntity.of(ProtwordsItem);
                }
            }
            return OptionalEntity.empty();
        }
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Nov 20 07:09:00 GMT 2025
    - 11.9K bytes
    - Click Count (0)
Back to Top