Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 62 for instanceOf (0.3 sec)

  1. android/guava/src/com/google/common/util/concurrent/AbstractFuture.java

        // unmeasurable (comparing done AbstractFutures with immediateFuture)
        if (obj instanceof Cancellation) {
          throw cancellationExceptionWithCause("Task was cancelled.", ((Cancellation) obj).cause);
        } else if (obj instanceof Failure) {
          throw new ExecutionException(((Failure) obj).exception);
        } else if (obj == NULL) {
          /*
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 22 21:17:24 GMT 2024
    - 63K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/reflect/TypeToken.java

        }
        if (runtimeType instanceof GenericArrayType) {
          return of(supertype).isSupertypeOfArray((GenericArrayType) runtimeType);
        }
        // Proceed to regular Type subtype check
        if (supertype instanceof Class) {
          return this.someRawTypeIsSubclassOf((Class<?>) supertype);
        } else if (supertype instanceof ParameterizedType) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jun 26 21:02:13 GMT 2023
    - 53.6K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/Multimaps.java

            Collection<E> collection) {
          if (collection instanceof NavigableSet) {
            return Sets.unmodifiableNavigableSet((NavigableSet<E>) collection);
          } else if (collection instanceof SortedSet) {
            return Collections.unmodifiableSortedSet((SortedSet<E>) collection);
          } else if (collection instanceof Set) {
            return Collections.unmodifiableSet((Set<E>) collection);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 86.4K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/Sets.java

      @GwtCompatible(serializable = true)
      public static <E extends Enum<E>> ImmutableSet<E> immutableEnumSet(Iterable<E> elements) {
        if (elements instanceof ImmutableEnumSet) {
          return (ImmutableEnumSet<E>) elements;
        } else if (elements instanceof Collection) {
          Collection<E> collection = (Collection<E>) elements;
          if (collection.isEmpty()) {
            return ImmutableSet.of();
          } else {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 77.4K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/Synchronized.java

          Collection<E> collection, @CheckForNull Object mutex) {
        if (collection instanceof SortedSet) {
          return sortedSet((SortedSet<E>) collection, mutex);
        }
        if (collection instanceof Set) {
          return set((Set<E>) collection, mutex);
        }
        if (collection instanceof List) {
          return list((List<E>) collection, mutex);
        }
        return collection(collection, mutex);
      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 53.4K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/SmbTransportImpl.java

                }
            }
            else if ( request instanceof AndXServerMessageBlock && response instanceof AndXServerMessageBlock ) {
                AndXServerMessageBlock curReq = (AndXServerMessageBlock) request;
                AndXServerMessageBlock curResp = (AndXServerMessageBlock) response;
    
                do {
                    curReq.setResponse(curResp);
    
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Wed Jan 18 23:47:00 GMT 2023
    - 67K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/core/io/CopyUtil.java

            assertArgumentNotNull("out", out);
    
            if (in instanceof FileInputStream) {
                if (out instanceof FileOutputStream) {
                    return copyInternal((FileInputStream) in, (FileOutputStream) out);
                }
                return copyInternal((FileInputStream) in, wrap(out));
            }
            if (out instanceof FileOutputStream) {
                return copyInternal(wrap(in), (FileOutputStream) out);
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 52.4K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/api/json/SearchApiManager.java

                }
                buf.append('}');
            } else if ((obj instanceof Integer) || (obj instanceof Long) || (obj instanceof Float) || (obj instanceof Double)) {
                buf.append((obj));
            } else if (obj instanceof Boolean) {
                buf.append(obj.toString());
            } else if (obj instanceof Date) {
    Java
    - Registered: Mon Apr 29 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 02:17:23 GMT 2024
    - 50.3K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb/SmbSessionImpl.java

                    }
    
                    if ( chainedResponse != null && chainedResponse.isReceived() ) {
                        return chainedResponse;
                    }
    
                    if ( request instanceof SmbComTreeConnectAndX ) {
                        SmbComTreeConnectAndX tcax = (SmbComTreeConnectAndX) request;
                        if ( this.netbiosName != null && tcax.getPath().endsWith("\\IPC$") ) {
                            /*
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Nov 14 17:41:04 GMT 2021
    - 49K bytes
    - Viewed (0)
  10. maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuilder.java

        }
    
        @Deprecated
        private ModelSource toSource(org.apache.maven.model.building.ModelSource modelSource) {
            if (modelSource instanceof FileModelSource fms) {
                return ModelSource.fromPath(fms.getPath());
            } else if (modelSource instanceof ArtifactModelSource ams) {
                return ModelSource.fromPath(ams.getPath(), ams.toString());
            } else {
                return new ModelSource() {
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Thu Apr 25 14:13:36 GMT 2024
    - 55.2K bytes
    - Viewed (0)
Back to top