Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 1,407 for isInstance (0.06 sec)

  1. 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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Jan 18 02:54:30 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  2. 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: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/app/service/ProtwordsService.java

         */
        public OptionalEntity<ProtwordsFile> getProtwordsFile(final String dictId) {
            return dictionaryManager.getDictionaryFile(dictId)
                    .filter(ProtwordsFile.class::isInstance)
                    .map(file -> OptionalEntity.of((ProtwordsFile) file))
                    .orElse(OptionalEntity.empty());
        }
    
        /**
         * Gets a specific protected words item by ID.
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/FluentIterable.java

       * This does perform a little more work than necessary, so another option is to insert an
       * unchecked cast at some later point:
       *
       * {@snippet :
       * @SuppressWarnings("unchecked") // safe because of ::isInstance check
       * ImmutableList<NewType> result =
       *     (ImmutableList) stream.filter(NewType.class::isInstance).collect(toImmutableList());
       * }
       */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 35.3K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/FluentIterable.java

       * This does perform a little more work than necessary, so another option is to insert an
       * unchecked cast at some later point:
       *
       * {@snippet :
       * @SuppressWarnings("unchecked") // safe because of ::isInstance check
       * ImmutableList<NewType> result =
       *     (ImmutableList) stream.filter(NewType.class::isInstance).collect(toImmutableList());
       * }
       */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 34.8K bytes
    - Viewed (0)
  6. guava/src/com/google/common/reflect/AbstractInvocationHandler.java

      public String toString() {
        return super.toString();
      }
    
      private static boolean isProxyOfSameInterfaces(Object arg, Class<?> proxyClass) {
        return proxyClass.isInstance(arg)
            // Equal proxy instances should mostly be instance of proxyClass
            // Under some edge cases (such as the proxy of JDK types serialized and then deserialized)
            // the proxy type may not be the same.
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  7. okhttp/src/androidMain/kotlin/okhttp3/internal/platform/android/AndroidSocketAdapter.kt

        sslSocketClass.getMethod("setAlpnProtocols", ByteArray::class.java)
    
      override fun isSupported(): Boolean = AndroidPlatform.isSupported
    
      override fun matchesSocket(sslSocket: SSLSocket): Boolean = sslSocketClass.isInstance(sslSocket)
    
      override fun configureTlsExtensions(
        sslSocket: SSLSocket,
        hostname: String?,
        protocols: List<Protocol>,
      ) {
        // No TLS extensions if the socket class is custom.
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/SmbRenewableCredentialsTest.java

            // Arrange: create an implementation instance
            SmbRenewableCredentials impl = supplier.get();
    
            // Act: call renew
            CredentialsInternal renewed = impl.renew();
    
            // Assert: verify behavior based on scenario
            if (expectSame) {
                assertSame(impl, renewed, "renew() should return the same instance");
            } else if (expectNew) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/base/Throwables.java

       */
      @GwtIncompatible // Class.cast, Class.isInstance
      public static <X extends Throwable> void throwIfInstanceOf(
          Throwable throwable, Class<X> declaredType) throws X {
        checkNotNull(throwable);
        if (declaredType.isInstance(throwable)) {
          throw declaredType.cast(throwable);
        }
      }
    
      /**
       * Propagates {@code throwable} exactly as-is, if and only if it is an instance of {@code
       * declaredType}. Example usage:
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 20.6K bytes
    - Viewed (0)
  10. 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: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 5.7K bytes
    - Viewed (0)
Back to top