Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 712 for optional (0.06 sec)

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

          return new Chopper() {
            @Override
            Optional<String> chop(String str) {
              return i.chop(str).or(you.chop(str));
            }
          };
        }
    
        abstract Optional<String> chop(String str);
    
        static Chopper suffix(String suffix) {
          return new Chopper() {
            @Override
            Optional<String> chop(String str) {
              if (str.endsWith(suffix)) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 17.8K bytes
    - Viewed (0)
  2. api/maven-api-core/src/main/java/org/apache/maven/api/services/ToolchainManager.java

         *
         * @param session The Maven session context
         * @param type The type of toolchain to retrieve
         * @return Optional containing the toolchain if found
         * @throws ToolchainManagerException if toolchain retrieval fails
         */
        @Nonnull
        Optional<Toolchain> getToolchainFromBuildContext(@Nonnull Session session, @Nonnull String type)
                throws ToolchainManagerException;
    
        /**
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Tue Feb 11 12:33:57 UTC 2025
    - 3.5K bytes
    - Viewed (0)
  3. cmd/batch-expire_test.go

          purge:
              # retainVersions: 0 # (default) delete all versions of the object. This option is the fastest.
              # retainVersions: 5 # keep the latest 5 versions of the object including delete markers.
    
      notify:
        endpoint: https://notify.endpoint # notification endpoint to receive job completion status
        token: Bearer xxxxx # optional authentication token for the notification endpoint
      
      retry:
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Thu Aug 01 12:53:30 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  4. api/maven-api-core/src/main/java/org/apache/maven/api/Dependency.java

         * Returns whether the dependency is optional or mandatory.
         * Unlike {@link DependencyCoordinates}, the obligation of a {@code Dependency} is always present.
         * The value is computed during the dependencies collection phase.
         *
         * @return {@code true} if the dependency is optional, or {@code false} if mandatory
         * @see DependencyCoordinates#getOptional()
         */
        boolean isOptional();
    
        /**
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Thu Jun 26 07:56:58 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  5. compat/maven-compat/src/main/java/org/apache/maven/toolchain/ToolchainManagerFactory.java

                        }
                    }
    
                    @Nonnull
                    @Override
                    public Optional<org.apache.maven.api.Toolchain> createDefaultToolchain()
                            throws ToolchainFactoryException {
                        return Optional.ofNullable(v3Factory.createDefaultToolchain())
                                .map(ToolchainManagerFactory.this::getToolchainV4);
                    }
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Sat May 31 07:20:31 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  6. api/maven-api-core/src/main/java/org/apache/maven/api/services/Interpolator.java

         *
         * @see Function
         * @see Optional
         * @see HashMap#computeIfAbsent(Object, Function)
         */
        static UnaryOperator<String> memoize(UnaryOperator<String> callback) {
            Map<String, Optional<String>> cache = new HashMap<>();
            return s -> cache.computeIfAbsent(s, v -> Optional.ofNullable(callback.apply(v)))
                    .orElse(null);
        }
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Mon Jan 13 16:14:35 UTC 2025
    - 6.9K bytes
    - Viewed (0)
  7. guava/src/com/google/common/base/Enums.java

        } catch (NoSuchFieldException impossible) {
          throw new AssertionError(impossible);
        }
      }
    
      /**
       * Returns an optional enum constant for the given type, using {@link Enum#valueOf}. If the
       * constant does not exist, {@link Optional#absent} is returned. A common use case is for parsing
       * user input or falling back to a default enum constant. For example, {@code
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jul 01 13:41:58 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/base/Platform.java

         * class could be unloaded after the above call to `getEnumConstants` but before we call
         * `get()`, but that is vanishingly unlikely.
         */
        return ref == null ? Optional.absent() : Optional.fromNullable(enumClass.cast(ref.get()));
      }
    
      static String formatCompact4Digits(double value) {
        return String.format(Locale.ROOT, "%.4g", value);
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/IteratorFeature.java

       * implementations.
       */
      SUPPORTS_SET;
    
      /**
       * A set containing none of the optional features of the {@link Iterator} or {@link ListIterator}
       * interfaces.
       */
      public static final Set<IteratorFeature> UNMODIFIABLE = emptySet();
    
      /**
       * A set containing all of the optional features of the {@link Iterator} and {@link ListIterator}
       * interfaces.
       */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Oct 03 18:22:43 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  10. api/maven-api-core/src/main/java/org/apache/maven/api/services/VersionResolverResult.java

     * specific language governing permissions and limitations
     * under the License.
     */
    package org.apache.maven.api.services;
    
    import java.util.List;
    import java.util.Optional;
    
    import org.apache.maven.api.Repository;
    import org.apache.maven.api.Version;
    import org.apache.maven.api.annotations.Experimental;
    import org.apache.maven.api.annotations.Nonnull;
    
    /**
     *
     * @since 4.0.0
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Wed Jan 29 08:17:07 UTC 2025
    - 1.3K bytes
    - Viewed (0)
Back to top