Search Options

Results per page
Sort
Preferred Languages
Advance

Results 251 - 260 of 922 for Optional (0.2 sec)

  1. api/maven-api-core/src/main/java/org/apache/maven/api/JavaPathType.java

         * @return Java path type associated to the given location
         */
        public static Optional<JavaPathType> valueOf(JavaFileManager.Location location) {
            for (JavaPathType type : JavaPathType.values()) {
                if (location.equals(type.location)) {
                    return Optional.of(type);
                }
            }
            return Optional.empty();
        }
    
        /**
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Mon May 13 09:53:45 UTC 2024
    - 15K bytes
    - Viewed (0)
  2. compat/maven-compat/src/test/resources/inheritance-repo/t07/p0/pom.xml

          </dependency>
          <dependency>
            <groupId>maven-test</groupId>
            <artifactId>t07-d</artifactId>
            <version>1.2</version>
            <scope>test</scope>
            <optional>false</optional>
          </dependency>
        </dependencies>
      </dependencyManagement>
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 992 bytes
    - Viewed (0)
  3. tests/test_filter_pydantic_sub_model/app_pv1.py

    from typing import Optional
    
    from fastapi import Depends, FastAPI
    from pydantic import BaseModel, validator
    
    app = FastAPI()
    
    
    class ModelB(BaseModel):
        username: str
    
    
    class ModelC(ModelB):
        password: str
    
    
    class ModelA(BaseModel):
        name: str
        description: Optional[str] = None
        model_b: ModelB
    
        @validator("name")
        def lower_username(cls, name: str, values):
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 784 bytes
    - Viewed (0)
  4. compat/maven-compat/src/test/resources/inheritance-repo/t07/p0/p1/pom.xml

          </dependency>
          <dependency>
            <groupId>maven-test</groupId>
            <artifactId>t07-d</artifactId>
            <version>1.0</version>
            <scope>test</scope>
            <optional>false</optional>
          </dependency>
        </dependencies>
      </dependencyManagement>
      <dependencies>
        <dependency>
          <groupId>maven-test</groupId>
          <artifactId>t07-a</artifactId>
          <version>1.0</version>
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  5. tests/test_forms_single_model.py

    from typing import List, Optional
    
    from dirty_equals import IsDict
    from fastapi import FastAPI, Form
    from fastapi.testclient import TestClient
    from pydantic import BaseModel, Field
    from typing_extensions import Annotated
    
    app = FastAPI()
    
    
    class FormModel(BaseModel):
        username: str
        lastname: str
        age: Optional[int] = None
        tags: List[str] = ["foo", "bar"]
        alias_with: str = Field(alias="with", default="nothing")
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Sep 13 09:51:00 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  6. impl/maven-core/src/main/java/org/apache/maven/configuration/BeanConfigurationRequest.java

        BeanConfigurationRequest setClassLoader(ClassLoader classLoader);
    
        /**
         * Gets the optional preprocessor for configuration values.
         *
         * @return The preprocessor for configuration values or {@code null} if none.
         */
        BeanConfigurationValuePreprocessor getValuePreprocessor();
    
        /**
         * Sets the optional preprocessor for configuration values.
         *
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  7. tests/test_security_http_basic_optional.py

    from base64 import b64encode
    from typing import Optional
    
    from fastapi import FastAPI, Security
    from fastapi.security import HTTPBasic, HTTPBasicCredentials
    from fastapi.testclient import TestClient
    
    app = FastAPI()
    
    security = HTTPBasic(auto_error=False)
    
    
    @app.get("/users/me")
    def read_current_user(credentials: Optional[HTTPBasicCredentials] = Security(security)):
        if credentials is None:
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  8. apache-maven/src/assembly/maven/bin/mvn.cmd

    @REM
    @REM   JAVA_HOME         (Optional) Points to a Java installation.
    @REM   MAVEN_ARGS        (Optional) Arguments passed to Maven before CLI arguments.
    @REM   MAVEN_BATCH_ECHO  (Optional) Set to 'on' to enable the echoing of the batch commands.
    @REM   MAVEN_BATCH_PAUSE (Optional) set to 'on' to wait for a key stroke before ending.
    @REM   MAVEN_OPTS        (Optional) Java runtime options used when Maven is executed.
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Thu Oct 24 12:01:35 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  9. build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/extensions.kt

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package gradlebuild.binarycompatibility
    
    import japicmp.util.Optional
    
    
    internal
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 764 bytes
    - Viewed (0)
  10. api/maven-api-core/src/main/java/org/apache/maven/api/services/Interpolator.java

         *
         * @see Function
         * @see Optional
         * @see HashMap#computeIfAbsent(Object, Function)
         */
        static Function<String, String> memoize(Function<String, String> callback) {
            Map<String, Optional<String>> cache = new HashMap<>();
            return s -> cache.computeIfAbsent(s, v -> Optional.ofNullable(callback.apply(v)))
                    .orElse(null);
        }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Thu Oct 17 09:25:53 UTC 2024
    - 6.9K bytes
    - Viewed (0)
Back to top