Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 76 for DefaultValue (0.4 sec)

  1. android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java

          if (isNullable(param)) {
            args.add(null);
            continue;
          }
          Object defaultValue = getDummyValue(param.getType());
          if (defaultValue == null) {
            throw new ParameterNotInstantiableException(param);
          }
          args.add(defaultValue);
        }
        return args;
      }
    
      private <T> @Nullable T getDummyValue(TypeToken<T> type) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 32.5K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/testing/FreshValueGenerator.java

        throw new UnsupportedOperationException();
      }
    
      private <T> T pickInstance(T[] instances, T defaultValue) {
        return pickInstance(Arrays.asList(instances), defaultValue);
      }
    
      private <T> T pickInstance(Collection<T> instances, T defaultValue) {
        if (instances.isEmpty()) {
          return defaultValue;
        }
        // generateInt() is 1-based.
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 28.1K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/ImmutableMap.java

        /*
         * Even though it's weird to pass a defaultValue that is null, some callers do so. Those who
         * pass a literal "null" should probably just use `get`, but I would expect other callers to
         * pass an expression that *might* be null. This could happen with:
         *
         * - a `getFooOrDefault(@Nullable Foo defaultValue)` method that returns
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 41.2K bytes
    - Viewed (0)
  4. guava/src/com/google/common/base/Defaults.java

       * false} for {@code boolean} and {@code '\0'} for {@code char}. For non-primitive types and
       * {@code void}, {@code null} is returned.
       */
      @SuppressWarnings("unchecked")
      public static <T> @Nullable T defaultValue(Class<T> type) {
        checkNotNull(type);
        if (type.isPrimitive()) {
          if (type == boolean.class) {
            return (T) Boolean.FALSE;
          } else if (type == char.class) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/graph/Graphs.java

        public @Nullable V edgeValueOrDefault(N nodeU, N nodeV, @Nullable V defaultValue) {
          return delegate().edgeValueOrDefault(nodeV, nodeU, defaultValue); // transpose
        }
    
        @Override
        public @Nullable V edgeValueOrDefault(EndpointPair<N> endpoints, @Nullable V defaultValue) {
          return delegate().edgeValueOrDefault(transpose(endpoints), defaultValue);
        }
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Aug 01 00:26:14 UTC 2025
    - 22.7K bytes
    - Viewed (0)
  6. guava/src/com/google/common/graph/Graphs.java

        public @Nullable V edgeValueOrDefault(N nodeU, N nodeV, @Nullable V defaultValue) {
          return delegate().edgeValueOrDefault(nodeV, nodeU, defaultValue); // transpose
        }
    
        @Override
        public @Nullable V edgeValueOrDefault(EndpointPair<N> endpoints, @Nullable V defaultValue) {
          return delegate().edgeValueOrDefault(transpose(endpoints), defaultValue);
        }
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Aug 01 00:26:14 UTC 2025
    - 23.3K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/taglib/FessFunctions.java

        /**
         * Retrieves a localized message for the given key.
         *
         * @param key the message key
         * @param defaultValue the default value to return if message not found
         * @return localized message or default value
         */
        public static String getMessage(final String key, final String defaultValue) {
            final Locale locale = LaRequestUtil.getOptionalRequest().map(HttpServletRequest::getLocale).orElse(Locale.ROOT);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 25.3K bytes
    - Viewed (1)
  8. android/guava/src/com/google/common/base/Defaults.java

       * false} for {@code boolean} and {@code '\0'} for {@code char}. For non-primitive types and
       * {@code void}, {@code null} is returned.
       */
      @SuppressWarnings("unchecked")
      public static <T> @Nullable T defaultValue(Class<T> type) {
        checkNotNull(type);
        if (type.isPrimitive()) {
          if (type == boolean.class) {
            return (T) Boolean.FALSE;
          } else if (type == char.class) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  9. api/maven-api-core/src/main/java/org/apache/maven/api/plugin/annotations/Parameter.java

         * PluginParameterExpressionEvaluator</a>.
         * @return the default value
         */
        @Nonnull
        String defaultValue() default "";
    
        /**
         * is the parameter required?
         * @return <code>true</code> if the Mojo should fail when the parameter cannot be injected
         */
        boolean required() default false;
    
        /**
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Mon Feb 05 09:45:47 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  10. api/maven-api-annotations/src/main/java/org/apache/maven/api/annotations/Config.java

        /**
         * Specifies the default value of the configuration property.
         *
         * @return the default value as a string, defaults to empty string
         */
        String defaultValue() default "";
    
        /**
         * Specifies whether the configuration property is read-only.
         *
         * @return true if the property is read-only, false otherwise
         */
        boolean readOnly() default false;
    
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Thu Jul 03 14:18:26 UTC 2025
    - 4.3K bytes
    - Viewed (0)
Back to top