Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 2,116 for instance (0.22 sec)

  1. 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:
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Mar 06 15:38:58 GMT 2024
    - 20.6K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/util/concurrent/ExecutionError.java

        super(message);
      }
    
      /**
       * Creates a new instance with the given detail message and cause. Prefer to provide a
       * non-nullable {@code cause}, as many users expect to find one.
       */
      public ExecutionError(@CheckForNull String message, @CheckForNull Error cause) {
        super(message, cause);
      }
    
      /**
       * Creates a new instance with {@code null} as its detail message and the given cause. Prefer to
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Mar 07 17:52:19 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/base/MoreObjects.java

      }
    
      /**
       * Creates an instance of {@link ToStringHelper} in the same manner as {@link
       * #toStringHelper(Object)}, but using the simple name of {@code clazz} instead of using an
       * instance's {@link Object#getClass()}.
       *
       * <p>Note that in GWT, class names are often obfuscated.
       *
       * @param clazz the {@link Class} of the instance
       * @since 18.0 (since 7.0 as {@code Objects.toStringHelper()}).
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Oct 13 14:11:58 GMT 2023
    - 15.4K bytes
    - Viewed (0)
  4. maven-api-impl/src/main/java/org/apache/maven/internal/impl/resolver/MavenSessionBuilderSupplier.java

    import static java.util.Objects.requireNonNull;
    
    /**
     * A simple {@link Supplier} of {@link SessionBuilder} instances, that on each call supplies newly
     * constructed instance. To create session out of builder, use {@link SessionBuilder#build()}. For proper closing
     * of sessions, use {@link CloseableSession#close()} method on built instance(s).
     * <p>
     * Extend this class and override methods to customize, if needed.
     *
     * @since 4.0.0
     */
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 7.3K bytes
    - Viewed (0)
  5. guava/src/com/google/common/cache/CacheBuilder.java

            }
          };
    
      enum NullListener implements RemovalListener<Object, Object> {
        INSTANCE;
    
        @Override
        public void onRemoval(RemovalNotification<Object, Object> notification) {}
      }
    
      enum OneWeigher implements Weigher<Object, Object> {
        INSTANCE;
    
        @Override
        public int weigh(Object key, Object value) {
          return 1;
        }
      }
    
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 51.3K bytes
    - Viewed (0)
  6. tests/test_jsonable_encoder.py

            pass
    
        class MyModel(BaseModel):
            dt_field: safe_datetime
    
        instance = MyModel(dt_field=safe_datetime.now())
    
        encoded_instance = jsonable_encoder(
            instance, custom_encoder={safe_datetime: lambda o: o.isoformat()}
        )
        assert encoded_instance["dt_field"] == instance.dt_field.isoformat()
    
    
    def test_custom_enum_encoders():
        def custom_enum_encoder(v: Enum):
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 21:56:59 GMT 2024
    - 9K bytes
    - Viewed (0)
  7. maven-compat/src/main/resources/META-INF/maven/plugin-expressions/project.paramdoc.xml

      <version>0.0.0.0</version>
    </parent>
        ]]></configuration>
        <description> This is the MavenProject instance for the parent of the current POM.
        </description>
      </expression>
      <expression>
        <syntax>project.file</syntax>
        <description> This is the File instance that refers to the location of the current POM on
          disk.
        </description>
      </expression>
      <expression>
    XML
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Sun Nov 23 12:04:30 GMT 2014
    - 5.6K bytes
    - Viewed (0)
  8. build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/filters/KotlinInternalFilter.groovy

        boolean matches(CtClass ctClass) {
            return KotlinMetadataQueries.INSTANCE.isKotlinInternal(ctClass)
        }
    
        @Override
        boolean matches(CtField ctField) {
            return KotlinMetadataQueries.INSTANCE.isKotlinInternal(ctField)
        }
    
        @Override
        boolean matches(CtBehavior ctBehavior) {
            return KotlinMetadataQueries.INSTANCE.isKotlinInternal(ctBehavior)
        }
    Groovy
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Wed Dec 09 08:14:05 GMT 2020
    - 1.4K bytes
    - Viewed (0)
  9. okhttp-testing-support/src/main/kotlin/okhttp3/OkHttpClientTestRule.kt

        for (queue in TaskRunner.INSTANCE.activeQueues()) {
          // We wait at most 1 second, so we don't ever turn multiple lost threads into
          // a test timeout failure.
          val waitTime = (entryTime + 1_000_000_000L - System.nanoTime())
          if (!queue.idleLatch().await(waitTime, TimeUnit.NANOSECONDS)) {
            TaskRunner.INSTANCE.lock.withLock {
              TaskRunner.INSTANCE.cancelAll()
            }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/Interners.java

        }
      }
    
      /** Returns a fresh {@link InternerBuilder} instance. */
      public static InternerBuilder newBuilder() {
        return new InternerBuilder();
      }
    
      /**
       * Returns a new thread-safe interner which retains a strong reference to each instance it has
       * interned, thus preventing these instances from being garbage-collected. If this retention is
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Mar 13 14:30:51 GMT 2023
    - 5.9K bytes
    - Viewed (1)
Back to top