Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 39 for toInteger (0.16 sec)

  1. src/main/java/org/codelibs/fess/es/config/bsbhv/BsWebConfigBhv.java

                result.setIntervalTime(DfTypeUtil.toInteger(source.get("intervalTime")));
                result.setMaxAccessCount(DfTypeUtil.toLong(source.get("maxAccessCount")));
                result.setName(DfTypeUtil.toString(source.get("name")));
                result.setNumOfThread(DfTypeUtil.toInteger(source.get("numOfThread")));
                result.setPermissions(toStringArray(source.get("permissions")));
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/es/config/bsentity/dbmeta/FileConfigDbm.java

            setupEpg(_epgMap, et -> ((FileConfig) et).getSortOrder(), (et, vl) -> ((FileConfig) et).setSortOrder(DfTypeUtil.toInteger(vl)),
                    "sortOrder");
            setupEpg(_epgMap, et -> ((FileConfig) et).getTimeToLive(), (et, vl) -> ((FileConfig) et).setTimeToLive(DfTypeUtil.toInteger(vl)),
                    "timeToLive");
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 18K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/es/config/bsbhv/BsFileConfigBhv.java

                result.setIntervalTime(DfTypeUtil.toInteger(source.get("intervalTime")));
                result.setMaxAccessCount(DfTypeUtil.toLong(source.get("maxAccessCount")));
                result.setName(DfTypeUtil.toString(source.get("name")));
                result.setNumOfThread(DfTypeUtil.toInteger(source.get("numOfThread")));
                result.setPaths(DfTypeUtil.toString(source.get("paths")));
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/es/config/bsentity/dbmeta/WebConfigDbm.java

                    "numOfThread");
            setupEpg(_epgMap, et -> ((WebConfig) et).getPermissions(), (et, vl) -> ((WebConfig) et).setPermissions((String[]) vl),
                    "permissions");
            setupEpg(_epgMap, et -> ((WebConfig) et).getSortOrder(), (et, vl) -> ((WebConfig) et).setSortOrder(DfTypeUtil.toInteger(vl)),
                    "sortOrder");
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/core/convert/IntegerConversionUtilTest.java

    public class IntegerConversionUtilTest extends TestCase {
    
        /**
         * @throws Exception
         */
        public void testToInteger() throws Exception {
            assertEquals(new Integer("1000"), IntegerConversionUtil.toInteger("1,000"));
        }
    
        /**
         * @throws Exception
         */
        public void testToPrimitiveInt() throws Exception {
            assertEquals(1000, IntegerConversionUtil.toPrimitiveInt("1,000"));
        }
    
        /**
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  6. cmd/postpolicyform.go

    		return ""
    	}
    }
    
    // toLowerString - safely convert interface to lower string
    func toLowerString(val interface{}) string {
    	return strings.ToLower(toString(val))
    }
    
    // toInteger _ Safely convert interface to integer without causing panic.
    func toInteger(val interface{}) (int64, error) {
    	switch v := val.(type) {
    	case float64:
    		return int64(v), nil
    	case int64:
    		return v, nil
    	case int:
    		return int64(v), nil
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 23 19:35:41 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/core/convert/NumberConversionUtil.java

         * @return {@literal type}に変換された{@link Number}
         */
        public static Object convertNumber(final Class<?> type, final Object o) {
            if (type == Integer.class) {
                return IntegerConversionUtil.toInteger(o);
            } else if (type == BigDecimal.class) {
                return BigDecimalConversionUtil.toBigDecimal(o);
            } else if (type == Double.class) {
                return DoubleConversionUtil.toDouble(o);
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/es/log/bsbhv/BsSearchLogBhv.java

                result.setQueryId(DfTypeUtil.toString(source.get("queryId")));
                result.setQueryOffset(DfTypeUtil.toInteger(source.get("queryOffset")));
                result.setQueryPageSize(DfTypeUtil.toInteger(source.get("queryPageSize")));
                result.setQueryTime(DfTypeUtil.toLong(source.get("queryTime")));
                result.setReferer(DfTypeUtil.toString(source.get("referer")));
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/mylasta/direction/FessProp.java

                    if (v.length == 1) {
                        final int x = DfTypeUtil.toInteger(v[0].trim());
                        return new Pair<>(x, x);
                    }
                    if (v.length == 2) {
                        final int x = DfTypeUtil.toInteger(v[0].trim());
                        final int y = DfTypeUtil.toInteger(v[1].trim());
                        return new Pair<>(x, y);
                    }
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Sat Oct 12 01:54:15 UTC 2024
    - 87.2K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/es/log/bsentity/dbmeta/SearchLogDbm.java

            setupEpg(_epgMap, et -> ((SearchLog) et).getQueryOffset(), (et, vl) -> ((SearchLog) et).setQueryOffset(DfTypeUtil.toInteger(vl)),
                    "queryOffset");
            setupEpg(_epgMap, et -> ((SearchLog) et).getQueryPageSize(),
                    (et, vl) -> ((SearchLog) et).setQueryPageSize(DfTypeUtil.toInteger(vl)), "queryPageSize");
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 16.3K bytes
    - Viewed (0)
Back to top