Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for Pair (0.14 sec)

  1. src/main/java/org/codelibs/core/misc/Pair.java

         */
        public static <T1, T2> Pair<T1, T2> pair(final T1 first, final T2 second) {
            return new Pair<>(first, second);
        }
    
        /**
         * インスタンスを構築します。
         */
        public Pair() {
        }
    
        /**
         * インスタンスを構築します。
         *
         * @param first
         *            1番目の値
         * @param second
         *            2番目の値
         */
        public Pair(final T1 first, final T2 second) {
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/filter/EncodingFilter.java

            final String[] pairs = queryString.split("&");
            try {
                for (final String pair : pairs) {
                    final int pos = pair.indexOf('=');
                    if (pos >= 0) {
                        final String key = urlCodec.decode(pair.substring(0, pos), enc);
                        List<String> list = paramListMap.get(key);
                        if (list == null) {
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 6.9K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/util/ParameterUtil.java

                final String v = e.getValue();
                if (properyPattern.matcher(k).matches() && !v.startsWith(CIPHER_PREFIX)) {
                    return new Pair<>(k, CIPHER_PREFIX + cipher.encrypt(v));
                }
                return new Pair<>(k, v);
            }).forEach(e -> {
                if (buf.length() > 0) {
                    buf.append('\n');
                }
                buf.append(e.getFirst());
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 6.5K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/helper/KeyMatchHelper.java

                final List<Tuple3<String, QueryBuilder, ScoreFunctionBuilder<?>>> boostList = getQueryMap(key).get(toLowerCase(keyword));
                if (boostList != null) {
                    boostList.forEach(pair -> list.add(new FilterFunctionBuilder(pair.getValue2(), pair.getValue3())));
                }
            });
        }
    
        public List<Map<String, Object>> getBoostedDocumentList(final KeyMatch keyMatch) {
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 8.2K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/query/parser/QueryParser.java

                    }
                }
                return query;
            }
    
            protected Pair<String, String> splitField(String defaultField, String field) {
                int indexOf = field.indexOf(':');
                if (indexOf < 0)
                    return new Pair<>(field, null);
                final String indexField = indexOf == 0 ? defaultField : field.substring(0, indexOf);
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 5.2K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/es/user/exbhv/GroupBhv.java

                result.setAttributes(source.entrySet().stream().filter(e -> !"name".equals(e.getKey()))
                        .map(e -> new Pair<>(e.getKey(), (String) e.getValue())).collect(Collectors.toMap(Pair::getFirst, Pair::getSecond)));
                return result;
            } catch (InstantiationException | IllegalAccessException e) {
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 2.2K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/ds/AbstractDataStore.java

                    value = value.replace("${" + entry.getKey() + "}", entry.getValue());
                }
                return new Pair<>(key, value);
            }).collect(Collectors.toMap(Pair<String, String>::getFirst, Pair<String, String>::getSecond));
            final Map<String, String> configScriptMap = config.getHandlerScriptMap();
    
            initParamMap.putAll(configParamMap);
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 6.3K bytes
    - Viewed (1)
  8. src/main/java/org/codelibs/fess/helper/RelatedContentHelper.java

            final Map<String, Pair<Map<String, String>, List<Pair<Pattern, String>>>> relatedContentMap = new HashMap<>();
            getAvailableRelatedContentList().stream().forEach(entity -> {
                final String key = getHostKey(entity);
                Pair<Map<String, String>, List<Pair<Pattern, String>>> pair = relatedContentMap.get(key);
                if (pair == null) {
                    pair = new Pair<>(new HashMap<>(), new ArrayList<>());
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 4.8K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/es/log/exbhv/SearchLogBhv.java

                                result.getSearchFieldLogList().add(new Pair<>(e.getKey(), v));
                            }
                        } else if (e.getValue() instanceof List) {
                            final List<String> values = (List<String>) e.getValue();
                            for (final String v : values) {
                                result.getSearchFieldLogList().add(new Pair<>(e.getKey(), v));
                            }
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 4.8K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/crawler/FessCrawlerThreadTest.java

    import java.util.List;
    import java.util.regex.Pattern;
    
    import org.codelibs.core.misc.Pair;
    import org.codelibs.fess.unit.UnitFessTestCase;
    
    public class FessCrawlerThreadTest extends UnitFessTestCase {
    
        public void test_getClientRuleList() {
            FessCrawlerThread crawlerThread = new FessCrawlerThread();
    
            List<Pair<String, Pattern>> list = crawlerThread.getClientRuleList(null);
            assertEquals(0, list.size());
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 1.9K bytes
    - Viewed (0)
Back to top