Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 1,792 for isinstance (0.04 sec)

  1. impl/maven-core/src/main/java/org/apache/maven/configuration/internal/EnhancedConfigurationConverter.java

                final ConfigurationListener listener)
                throws ComponentConfigurationException {
            final Object value = fromExpression(configuration, evaluator, type);
            if (type.isInstance(value)) {
                return value;
            }
            try {
                final Class<?> implType = getClassForImplementationHint(type, configuration, loader);
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Thu Jul 17 07:40:49 UTC 2025
    - 6.2K bytes
    - Viewed (0)
  2. okhttp-testing-support/src/main/kotlin/okhttp3/EventRecorder.kt

       */
      fun <T : CallEvent> removeUpToEvent(eventClass: Class<T>): T {
        val fullEventSequence = eventSequence.toList()
        try {
          while (true) {
            val event = takeEvent()
            if (eventClass.isInstance(event)) {
              return eventClass.cast(event)
            }
          }
        } catch (e: NoSuchElementException) {
          throw AssertionError("full event sequence: $fullEventSequence", e)
        }
      }
    
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Nov 05 18:28:35 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  3. tests/test_union_body_discriminator_annotated.py

        class Cat(BaseModel):
            pet_type: str = "cat"
            meows: int
    
        class Dog(BaseModel):
            pet_type: str = "dog"
            barks: float
    
        def get_pet_type(v):
            assert isinstance(v, dict)
            return v.get("pet_type", "")
    
        Pet = Annotated[
            Union[Annotated[Cat, Tag("cat")], Annotated[Dog, Tag("dog")]],
            Discriminator(get_pet_type),
        ]
    
        app = FastAPI()
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 20 15:55:38 UTC 2025
    - 7.7K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/reflect/Parameter.java

      }
    
      @Override
      public <A extends Annotation> @Nullable A getAnnotation(Class<A> annotationType) {
        checkNotNull(annotationType);
        for (Annotation annotation : annotations) {
          if (annotationType.isInstance(annotation)) {
            return annotationType.cast(annotation);
          }
        }
        return null;
      }
    
      @Override
      public Annotation[] getAnnotations() {
        return getDeclaredAnnotations();
      }
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sat Jan 18 02:54:30 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  5. guava/src/com/google/common/base/Predicates.java

       *
       * <p><b>Discouraged:</b> Prefer using {@code clazz::isInstance} or {@code x -> x instanceof
       * Clazz}, but note that lambdas do not have human-readable {@link #toString()} representations
       * and are not serializable.
       */
      @GwtIncompatible // Class.isInstance
      public static <T extends @Nullable Object> Predicate<T> instanceOf(Class<?> clazz) {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 26.6K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/app/service/KuromojiService.java

         */
        public OptionalEntity<KuromojiFile> getKuromojiFile(final String dictId) {
            return dictionaryManager.getDictionaryFile(dictId)
                    .filter(KuromojiFile.class::isInstance)
                    .map(file -> OptionalEntity.of((KuromojiFile) file))
                    .orElse(OptionalEntity.empty());
        }
    
        /**
         * Get a Kuromoji item.
         *
         * @param dictId The dictionary ID.
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  7. fastapi/params.py

                    stacklevel=4,
                )
            current_json_schema_extra = json_schema_extra or extra
            kwargs["deprecated"] = deprecated
    
            if serialization_alias in (_Unset, None) and isinstance(alias, str):
                serialization_alias = alias
            if validation_alias in (_Unset, None):
                validation_alias = alias
            kwargs.update(
                {
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 26.3K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/app/service/StemmerOverrideService.java

         */
        public OptionalEntity<StemmerOverrideFile> getStemmerOverrideFile(final String dictId) {
            return dictionaryManager.getDictionaryFile(dictId)
                    .filter(StemmerOverrideFile.class::isInstance)
                    .map(file -> OptionalEntity.of((StemmerOverrideFile) file))
                    .orElse(OptionalEntity.empty());
        }
    
        /**
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 5.7K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/app/service/CharMappingService.java

         */
        public OptionalEntity<CharMappingFile> getCharMappingFile(final String dictId) {
            return dictionaryManager.getDictionaryFile(dictId)
                    .filter(CharMappingFile.class::isInstance)
                    .map(file -> OptionalEntity.of((CharMappingFile) file))
                    .orElse(OptionalEntity.empty());
        }
    
        /**
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 6.1K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/CredentialsInternalTest.java

            // Act & Assert
            // unwrap to interface itself should return same instance
            CredentialsInternal unwrapped = creds.unwrap(CredentialsInternal.class);
            assertNotNull(unwrapped, "unwrap to CredentialsInternal returns instance");
            assertSame(creds, unwrapped, "unwrap returns the same object instance");
    
            // unwrap to unrelated type should return null (use another Credentials implementation)
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.9K bytes
    - Viewed (0)
Back to top