Search Options

Results per page
Sort
Preferred Languages
Advance

Results 311 - 320 of 1,889 for instanceOf (0.18 sec)

  1. android/guava/src/com/google/common/collect/ImmutableSetMultimap.java

      /**
       * Returns the empty multimap.
       *
       * <p><b>Performance note:</b> the instance returned is a singleton.
       */
      // Casting is safe because the multimap will never hold any elements.
      @SuppressWarnings("unchecked")
      public static <K, V> ImmutableSetMultimap<K, V> of() {
        return (ImmutableSetMultimap<K, V>) EmptyImmutableSetMultimap.INSTANCE;
      }
    
      /** Returns an immutable multimap containing a single entry. */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 25.8K bytes
    - Viewed (0)
  2. guava/src/com/google/common/graph/EndpointPair.java

        public boolean isOrdered() {
          return true;
        }
    
        @Override
        public boolean equals(@Nullable Object obj) {
          if (obj == this) {
            return true;
          }
          if (!(obj instanceof EndpointPair)) {
            return false;
          }
    
          EndpointPair<?> other = (EndpointPair<?>) obj;
          if (isOrdered() != other.isOrdered()) {
            return false;
          }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 8.1K bytes
    - Viewed (0)
  3. src/main/java/jcifs/spnego/NegTokenInit.java

                final ASN1TaggedObject constructed = (ASN1TaggedObject) is.readObject();
                if (constructed == null || constructed.getTagClass() != BERTags.APPLICATION
                        || !(constructed.getBaseObject() instanceof ASN1Sequence)) {
                    throw new IOException("Malformed SPNEGO token " + constructed);
                }
    
                final ASN1Sequence vec = (ASN1Sequence) constructed.getBaseObject();
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  4. guava-gwt/src-super/com/google/common/util/concurrent/super/com/google/common/util/concurrent/GwtFluentFutureCatchingSpecialization.java

      /*
       * In the GWT versions of the methods (below), every exceptionType parameter is required to be
       * Class<Throwable>. To handle only certain kinds of exceptions under GWT, you'll need to write
       * your own instanceof tests.
       */
    
      public final FluentFuture<V> catching(
          Class<Throwable> exceptionType,
          Function<? super Throwable, ? extends V> fallback,
          Executor executor) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  5. guava-gwt/src-super/com/google/common/util/concurrent/super/com/google/common/util/concurrent/Platform.java

        return true;
      }
    
      static void restoreInterruptIfIsInterruptedException(Throwable t) {}
    
      static void interruptCurrentThread() {}
    
      static void rethrowIfErrorOtherThanStackOverflow(Throwable t) {
        if (t instanceof Error) {
          // There is no StackOverflowError under GWT/J2CL.
          throw (Error) t;
        }
      }
    
      static <V extends @Nullable Object> V get(AbstractFuture<V> future)
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Feb 27 16:15:49 UTC 2025
    - 2K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/SmbEndOfFileExceptionTest.java

            assertNull(ex.getCause(), "Cause should be null by default");
            assertNull(ex.getRootCause(), "Root cause should be null by default");
            assertTrue(ex instanceof SmbException, "Should be an SmbException subtype");
        }
    
        /**
         * Ensures the exception is thrown and captured via assertThrows with the right message.
         */
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/helper/ProcessHelperTest.java

                fail("Expected exception for empty command list");
            } catch (Exception e) {
                // Expected - empty command list should cause exception
                assertTrue(e instanceof JobProcessingException || e instanceof IndexOutOfBoundsException);
            }
        }
    
        public void test_nullCallback() {
            String sessionId = "test_null_callback";
            List<String> cmdList = Arrays.asList("echo", "hello");
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 05:35:01 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/primitives/Longs.java

          // Overridden to prevent a ton of boxing
          return (target instanceof Long) && Longs.indexOf(array, (Long) target, start, end) != -1;
        }
    
        @Override
        public int indexOf(@Nullable Object target) {
          // Overridden to prevent a ton of boxing
          if (target instanceof Long) {
            int i = Longs.indexOf(array, (Long) target, start, end);
            if (i >= 0) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 29.1K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/util/concurrent/TrustedInputFutureTest.java

    @NullUnmarked
    public class TrustedInputFutureTest extends AbstractAbstractFutureTest {
      @Override
      AbstractFuture<Integer> newDelegate() {
        AbstractFuture<Integer> future = new TrustedFuture<Integer>() {};
        assertTrue(future instanceof TrustedFuture); // sanity check
        return future;
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Jan 18 02:54:30 UTC 2025
    - 1.2K bytes
    - Viewed (0)
  10. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSortedSet.java

        boolean hasSameComparator = fromSortedSet || hasSameComparator(elements, comparator);
        if (hasSameComparator && (elements instanceof ImmutableSortedSet)) {
          @SuppressWarnings("unchecked")
          ImmutableSortedSet<E> result = (ImmutableSortedSet<E>) elements;
          boolean isSubset =
              (result instanceof RegularImmutableSortedSet)
                  && ((RegularImmutableSortedSet) result).isSubset;
          if (!isSubset) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Aug 06 18:32:41 UTC 2025
    - 15.5K bytes
    - Viewed (0)
Back to top