Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 798 for HashMap (0.11 sec)

  1. src/test/java/org/codelibs/fess/util/DocumentUtilTest.java

    import java.util.ArrayList;
    import java.util.Arrays;
    import java.util.Date;
    import java.util.HashMap;
    import java.util.List;
    import java.util.Map;
    
    import org.codelibs.fess.unit.UnitFessTestCase;
    
    public class DocumentUtilTest extends UnitFessTestCase {
    
        public void test_string() {
            Map<String, Object> doc = new HashMap<>();
    
            String expected = "1";
            doc.put("key1", expected);
    Registered: 2024-06-12 13:08
    - Last Modified: 2024-02-22 01:37
    - 4K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/it/search/SearchApiTests.java

            Map<String, String> andParams = new HashMap<>();
            andParams.put("q", query.replace("OR", "AND"));
            String andResponse = checkMethodBase(new HashMap<>()).params(andParams).get("/api/v1/documents").asString();
            int andRecordCount = JsonPath.from(andResponse).getInt("record_count");
    
            Map<String, String> params = new HashMap<>();
            params.put("q", query);
    Registered: 2024-06-12 13:08
    - Last Modified: 2024-02-22 01:37
    - 18.6K bytes
    - Viewed (0)
  3. test/typeparam/issue48716.dir/a.go

    	Iterate(func(Pair[K, V]) bool)
    }
    
    type HashMap[K comparable, V any] struct {
    	m map[K]V
    }
    
    func NewHashMap[K comparable, V any](capacity int) HashMap[K, V] {
    	var m map[K]V
    	if capacity >= 1 {
    		m = make(map[K]V, capacity)
    	} else {
    		m = map[K]V{}
    	}
    
    	return HashMap[K, V]{m: m}
    }
    
    func (m HashMap[K, V]) Put(k K, v V) {
    	m.m[k] = v
    }
    
    func (m HashMap[K, V]) Len() int {
    	return len(m.m)
    }
    
    Registered: 2024-06-12 16:32
    - Last Modified: 2021-10-12 20:09
    - 861 bytes
    - Viewed (0)
  4. fess-crawler/src/test/java/org/codelibs/fess/crawler/extractor/impl/JodExtractorTest.java

     * governing permissions and limitations under the License.
     */
    package org.codelibs.fess.crawler.extractor.impl;
    
    import java.io.InputStream;
    import java.util.HashMap;
    import java.util.Map;
    
    import org.codelibs.core.io.CloseableUtil;
    import org.codelibs.core.io.ResourceUtil;
    import org.codelibs.fess.crawler.entity.ExtractData;
    Registered: 2024-06-12 15:17
    - Last Modified: 2024-02-22 01:36
    - 9.5K bytes
    - Viewed (0)
  5. maven-api-impl/src/test/java/org/apache/maven/internal/impl/standalone/RepositorySystemSupplier.java

            }
            return namedLockFactories;
        }
    
        protected Map<String, NamedLockFactory> createNamedLockFactories() {
            HashMap<String, NamedLockFactory> result = new HashMap<>();
            result.put(NoopNamedLockFactory.NAME, new NoopNamedLockFactory());
            result.put(LocalReadWriteLockNamedLockFactory.NAME, new LocalReadWriteLockNamedLockFactory());
    Registered: 2024-06-12 09:55
    - Last Modified: 2024-05-02 15:10
    - 43.7K bytes
    - Viewed (0)
  6. maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/MavenRepositorySystemSupplier.java

            }
            return namedLockFactories;
        }
    
        protected Map<String, NamedLockFactory> createNamedLockFactories() {
            HashMap<String, NamedLockFactory> result = new HashMap<>();
            result.put(NoopNamedLockFactory.NAME, new NoopNamedLockFactory());
            result.put(LocalReadWriteLockNamedLockFactory.NAME, new LocalReadWriteLockNamedLockFactory());
    Registered: 2024-06-12 09:55
    - Last Modified: 2024-05-02 15:10
    - 45.5K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/helper/IndexingHelperTest.java

            assertNull(sentIndex.get());
    
            sentIndex.set(null);
            sentDocList.clear();
            docList.add(new HashMap<>(Map.of(//
                    "_id", "001", //
                    "config_id", "W01", //
                    "url", "http://test.com/001"//
            )));
            docList.add(new HashMap<>(Map.of(//
                    "_id", "002", //
                    "thumbnail", "http://test.com/002", //
    Registered: 2024-06-12 13:08
    - Last Modified: 2024-02-22 01:37
    - 23.3K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/it/admin/GroupTests.java

            final Map<String, Object> updateMap = new HashMap<>();
            final Map<String, String> newAttributes = new HashMap<>();
            newAttributes.put("gidNumber", "100");
            updateMap.put("attributes", newAttributes);
    
            return updateMap;
        }
    
        @Override
        protected void checkUpdate() {
            Map<String, Object> searchBody = new HashMap<>();
            searchBody.put("size", NUM * 2);
    Registered: 2024-06-12 13:08
    - Last Modified: 2024-02-22 01:37
    - 3.2K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/it/admin/ReqHeaderTests.java

     * governing permissions and limitations under the License.
     */
    package org.codelibs.fess.it.admin;
    
    import static org.hamcrest.Matchers.equalTo;
    
    import java.util.HashMap;
    import java.util.List;
    import java.util.Map;
    
    import org.codelibs.fess.it.CrudTestBase;
    import org.junit.jupiter.api.AfterEach;
    import org.junit.jupiter.api.BeforeEach;
    import org.junit.jupiter.api.Tag;
    Registered: 2024-06-12 13:08
    - Last Modified: 2024-02-22 01:37
    - 3.9K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/it/admin/SearchListTests.java

        protected String getIdKey() {
            return "doc_id";
        }
    
        @Override
        protected Map<String, Object> createTestParam(int id) {
            final Map<String, Object> requestBody = new HashMap<>();
            final Map<String, Object> doc = new HashMap<>();
            final String keyProp = NAME_PREFIX + id;
            doc.put(KEY_PROPERTY, keyProp);
            doc.put("url", "http://example.com/" + id);
            doc.put("boost", id);
    Registered: 2024-06-12 13:08
    - Last Modified: 2024-02-22 01:37
    - 4.5K bytes
    - Viewed (0)
Back to top