Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for getAsFloat (0.09 sec)

  1. src/test/java/org/codelibs/fess/suggest/settings/SuggestSettingsTest.java

        }
    
        @Test
        public void test_setAndGetAsFloat() {
            String key = "key";
            float value = 0.01F;
            settings.set(key, value);
            assertEquals(value, settings.getAsFloat(key, -1), 0);
        }
    
        @Test
        public void test_setAndGetAsBoolean() {
            String key = "key";
            settings.set(key, true);
            assertEquals(true, settings.getAsBoolean(key, false));
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/suggest/settings/SuggestSettings.java

            if (obj == null) {
                value = defaultValue;
            } else {
                value = Long.parseLong(obj.toString());
            }
    
            return value;
        }
    
        public float getAsFloat(final String key, final float defaultValue) {
            final Object obj = get(key);
    
            final float value;
            if (obj == null) {
                value = defaultValue;
            } else {
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Sat Oct 12 00:10:39 UTC 2024
    - 11.7K bytes
    - Viewed (0)
Back to top