Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1111 - 1120 of 2,123 for instanceof (0.19 seconds)

  1. guava-tests/test/com/google/common/util/concurrent/TestThread.java

          throws Exception {
        checkNotNull(expected);
        checkNotNull(methodName);
        checkNotNull(arguments);
        sendRequest(methodName, arguments);
        assertThat(getResponse(methodName).getThrowable()).isInstanceOf(expected);
      }
    
      /**
       * Causes this thread to call the named method, and asserts that this thread becomes blocked on
       * the lock-like object. The lock-like object must have a method equivalent to {@link
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 11.5K bytes
    - Click Count (0)
  2. api/maven-api-core/src/main/java/org/apache/maven/api/services/ExtensibleEnumRegistry.java

    import org.apache.maven.api.Service;
    import org.apache.maven.api.annotations.Nonnull;
    
    /**
     * Registry for extensible enum values that allows looking up enum instances by their identifiers.
     * <p>
     * This service provides access to all registered instances of a specific extensible enum type.
     * It's used internally by Maven and can also be used by plugins and extensions to access
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Thu Apr 03 13:33:59 GMT 2025
    - 1.8K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/collect/TreeMultimap.java

     * by supplied comparators. In all cases, this implementation uses {@link Comparable#compareTo} or
     * {@link Comparator#compare} instead of {@link Object#equals} to determine equivalence of
     * instances.
     *
     * <p><b>Warning:</b> The comparators or comparables used must be <i>consistent with equals</i> as
     * explained by the {@link Comparable} class specification. Otherwise, the resulting multiset will
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 8.5K bytes
    - Click Count (0)
  4. guava-testlib/test/com/google/common/testing/FreshValueGeneratorTest.java

      }
    
      private static void assertFreshInstance(Class<?> type, int instances) {
        assertFreshInstance(TypeToken.of(type), instances);
      }
    
      private static void assertFreshInstance(TypeToken<?> type, int instances) {
        FreshValueGenerator generator = new FreshValueGenerator();
        EqualsTester tester = new EqualsTester();
        for (int i = 0; i < instances; i++) {
          tester.addEqualityGroup(generator.generateFresh(type));
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 18.6K bytes
    - Click Count (0)
  5. guava-tests/test/com/google/common/eventbus/SubscriberTest.java

        methodCalled = false;
        methodArgument = null;
      }
    
      public void testCreate() {
        Subscriber s1 = Subscriber.create(bus, this, getTestSubscriberMethod("recordingMethod"));
        assertThat(s1).isInstanceOf(Subscriber.SynchronizedSubscriber.class);
    
        // a thread-safe method should not create a synchronized subscriber
        Subscriber s2 = Subscriber.create(bus, this, getTestSubscriberMethod("threadSafeMethod"));
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Dec 26 21:52:12 GMT 2025
    - 4.8K bytes
    - Click Count (0)
  6. okhttp-testing-support/src/main/kotlin/okhttp3/EventRecorder.kt

     * limitations under the License.
     */
    package okhttp3
    
    import assertk.assertThat
    import assertk.assertions.isCloseTo
    import assertk.assertions.isFalse
    import assertk.assertions.isInstanceOf
    import assertk.assertions.matchesPredicate
    import java.util.Deque
    import java.util.concurrent.ConcurrentLinkedDeque
    import java.util.concurrent.TimeUnit
    import okhttp3.CallEvent.CallStart
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 4.5K bytes
    - Click Count (0)
  7. android/guava/src/com/google/common/graph/NetworkBuilder.java

    import static com.google.common.graph.Graphs.checkNonNegative;
    
    import com.google.errorprone.annotations.CanIgnoreReturnValue;
    import org.jspecify.annotations.Nullable;
    
    /**
     * A builder for constructing instances of {@link MutableNetwork} or {@link ImmutableNetwork} with
     * user-defined properties.
     *
     * <p>A {@code Network} built by this class has the following default properties:
     *
     * <ul>
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Apr 02 14:49:41 GMT 2026
    - 7.3K bytes
    - Click Count (0)
  8. docs/tr/docs/advanced/advanced-dependencies.md

    ## Bir instance oluşturma { #create-an-instance }
    
    Bu class'tan bir instance'ı şöyle oluşturabiliriz:
    
    {* ../../docs_src/dependencies/tutorial011_an_py310.py hl[18] *}
    
    Böylece dependency'mizi "parametreleştirmiş" oluruz; artık içinde `"bar"` vardır ve bu değer `checker.fixed_content` attribute'u olarak durur.
    
    ## Instance'ı dependency olarak kullanma { #use-the-instance-as-a-dependency }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 07:53:17 GMT 2026
    - 10K bytes
    - Click Count (0)
  9. android/guava-tests/test/com/google/common/eventbus/SubscriberTest.java

        methodCalled = false;
        methodArgument = null;
      }
    
      public void testCreate() {
        Subscriber s1 = Subscriber.create(bus, this, getTestSubscriberMethod("recordingMethod"));
        assertThat(s1).isInstanceOf(Subscriber.SynchronizedSubscriber.class);
    
        // a thread-safe method should not create a synchronized subscriber
        Subscriber s2 = Subscriber.create(bus, this, getTestSubscriberMethod("threadSafeMethod"));
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Dec 26 21:52:12 GMT 2025
    - 4.8K bytes
    - Click Count (0)
  10. android/guava-tests/test/com/google/common/primitives/UnsignedBytesTest.java

        if (unsafeComparatorAvailable()) {
          assertThat(defaultComparator).isInstanceOf(UnsafeComparator.class);
        } else {
          assertThat(defaultComparator).isEqualTo(UnsignedBytes.lexicographicalComparatorJavaImpl());
        }
      }
    
      public void testLexicographicalComparator() {
        List<byte[]> ordered =
            Arrays.asList(
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Mar 08 01:43:32 GMT 2026
    - 13.6K bytes
    - Click Count (0)
Back to Top