Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 11 for getDefaultValue (0.08 seconds)

  1. guava-tests/test/com/google/common/collect/ForwardingMapTest.java

        if (rawType.equals(Predicate.class)) {
          return (Predicate<Object>) v -> (boolean) getDefaultValue(TypeToken.of(boolean.class));
        } else if (rawType.equals(IntFunction.class)) {
          try {
            Method method = IntFunction.class.getMethod("apply", int.class);
            return (IntFunction<Object>) v -> getDefaultValue(type.method(method).getReturnType());
          } catch (NoSuchMethodException e) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 12.4K bytes
    - Click Count (0)
  2. android/guava-testlib/src/com/google/common/testing/NullPointerTester.java

        @Nullable Object[] args = new Object[params.size()];
    
        for (int i = 0; i < args.length; i++) {
          Parameter param = params.get(i);
          if (i != indexOfParamToSetToNull) {
            args[i] = getDefaultValue(param.getType());
            Assert.assertTrue(
                "Can't find or create a sample instance for type '"
                    + param.getType()
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Jul 14 14:44:08 GMT 2025
    - 24.9K bytes
    - Click Count (0)
  3. compat/maven-plugin-api/src/main/java/org/apache/maven/plugin/descriptor/Parameter.java

            this.setEditable(p.isEditable());
            this.setDescription(p.getDescription());
            this.setExpression(p.getExpression());
            this.setDeprecated(p.getDeprecated());
            this.setDefaultValue(p.getDefaultValue());
            this.setType(p.getType());
            this.setSince(p.getSince());
        }
    
        // ----------------------------------------------------------------------
        //
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 5.1K bytes
    - Click Count (0)
  4. guava-testlib/src/com/google/common/testing/NullPointerTester.java

        @Nullable Object[] args = new Object[params.size()];
    
        for (int i = 0; i < args.length; i++) {
          Parameter param = params.get(i);
          if (i != indexOfParamToSetToNull) {
            args[i] = getDefaultValue(param.getType());
            Assert.assertTrue(
                "Can't find or create a sample instance for type '"
                    + param.getType()
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Jul 14 14:44:08 GMT 2025
    - 25.4K bytes
    - Click Count (0)
  5. src/main/java/org/codelibs/fess/helper/FileTypeHelper.java

            return filetype;
        }
    
        /**
         * Gets the default file type value used when MIME type is not found.
         *
         * @return the default file type value
         */
        public String getDefaultValue() {
            return defaultValue;
        }
    
        /**
         * Sets the default file type value to use when MIME type is not found.
         *
         * @param defaultValue the new default file type value
         */
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Jul 17 08:28:31 GMT 2025
    - 4.4K bytes
    - Click Count (0)
  6. src/test/java/org/codelibs/fess/helper/FileTypeHelperTest.java

        }
    
        @Test
        public void test_getDefaultValue() {
            assertEquals("others", fileTypeHelper.getDefaultValue());
        }
    
        @Test
        public void test_setDefaultValue() {
            fileTypeHelper.setDefaultValue("unknown");
            assertEquals("unknown", fileTypeHelper.getDefaultValue());
    
            // Test that get() returns new default value
            assertEquals("unknown", fileTypeHelper.get("non/existent"));
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 5.6K bytes
    - Click Count (0)
  7. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnenc/goals/Init.java

                        listPromptBuilder
                                .newItem()
                                .name(
                                        option.getDefaultValue().isPresent()
                                                ? option.getDefaultValue().get()
                                                : option.getKey())
                                .text(option.getDescription())
                                .add();
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Wed Jun 11 13:14:09 GMT 2025
    - 12K bytes
    - Click Count (0)
  8. impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/MojoDescriptorCreator.java

                    .filter(p -> p.getDefaultValue() != null || p.getExpression() != null)
                    .map(p -> XmlNode.newInstance(
                            p.getName(),
                            p.getExpression(),
                            p.getDefaultValue() != null
                                    ? Collections.singletonMap("default-value", p.getDefaultValue())
                                    : null,
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Tue Mar 25 09:45:07 GMT 2025
    - 11.3K bytes
    - Click Count (0)
  9. src/test/java/org/codelibs/fess/validation/CustomSizeTest.java

                return defaultValue != null ? defaultValue.toString() : StringUtil.EMPTY;
            } catch (final Exception e) {
                return StringUtil.EMPTY;
            }
        }
    
        private String getDefaultMaxKey() {
            try {
                final Method method = CustomSize.class.getMethod("maxKey");
                final Object defaultValue = method.getDefaultValue();
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 17.4K bytes
    - Click Count (0)
  10. src/test/java/org/codelibs/fess/validation/UriTypeTest.java

            try {
                final Method method = UriType.class.getMethod("protocolType");
                assertNotNull(method, "protocolType method should exist");
                assertNull(method.getDefaultValue(), "protocolType should not have default value");
            } catch (final NoSuchMethodException e) {
                fail("protocolType method should exist");
            }
        }
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 21.3K bytes
    - Click Count (0)
Back to Top