Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 35 for instanceOf (0.07 seconds)

  1. 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);
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Sep 22 18:35:44 GMT 2025
    - 86.5K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/collect/Sets.java

       */
      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 {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Sep 22 18:35:44 GMT 2025
    - 81.6K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/collect/Synchronized.java

          Collection<E> collection, @Nullable 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);
      }
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Fri Aug 08 15:11:10 GMT 2025
    - 53K bytes
    - Click Count (0)
  4. guava/src/com/google/common/collect/Synchronized.java

          Collection<E> collection, @Nullable 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);
      }
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Fri Aug 08 15:11:10 GMT 2025
    - 56.9K bytes
    - Click Count (0)
  5. impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/concurrent/BuildPlanExecutor.java

                // notify listeners about "soft" project build failures only
                if (t instanceof Exception exception && !(t instanceof RuntimeException)) {
                    eventCatapult.fire(ExecutionEvent.Type.ProjectFailed, session, null, exception);
                }
    
                // reactor failure modes
                if (t instanceof RuntimeException || !(t instanceof Exception)) {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Thu Oct 16 06:12:36 GMT 2025
    - 55.1K bytes
    - Click Count (0)
  6. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelBuilder.java

                        ModelSource expectedParentSource = getParentPomFile(childModel, childSource);
    
                        if (expectedParentSource == null
                                || (expectedParentSource instanceof ModelSource2
                                        && !pomSource.equals(expectedParentSource))) {
                            parentData = readParentExternally(childModel, request, problems);
                        }
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Sun Mar 30 23:08:08 GMT 2025
    - 55.3K bytes
    - Click Count (0)
  7. guava/src/com/google/common/collect/Iterators.java

        return (Iterator<T>) EmptyModifiableIterator.INSTANCE;
      }
    
      /** Returns an unmodifiable view of {@code iterator}. */
      public static <T extends @Nullable Object> UnmodifiableIterator<T> unmodifiableIterator(
          Iterator<? extends T> iterator) {
        checkNotNull(iterator);
        if (iterator instanceof UnmodifiableIterator) {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Sep 16 12:42:11 GMT 2025
    - 51.4K bytes
    - Click Count (0)
  8. compat/maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java

            if (commandLine.hasOption(CLIManager.FAIL_ON_SEVERITY)) {
                String logLevelThreshold = commandLine.getOptionValue(CLIManager.FAIL_ON_SEVERITY);
    
                if (slf4jLoggerFactory instanceof LogLevelRecorder recorder) {
                    LogLevelRecorder.Level level =
                            switch (logLevelThreshold.toLowerCase(Locale.ENGLISH)) {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Mon Oct 27 13:24:03 GMT 2025
    - 78.1K bytes
    - Click Count (0)
  9. impl/maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuilder.java

            return build(toSource(modelSource), request);
        }
    
        @Deprecated
        static ModelSource toSource(org.apache.maven.model.building.ModelSource modelSource) {
            if (modelSource instanceof FileModelSource fms) {
                return Sources.buildSource(fms.getPath());
            } else {
                return new WrapModelSource(modelSource);
            }
        }
    
        @Override
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Nov 18 17:20:31 GMT 2025
    - 51.8K bytes
    - Click Count (0)
  10. guava-tests/test/com/google/common/collect/IteratorsTest.java

        Iterator<Integer> source = asList(1, 2, 3).iterator();
        Iterator<List<Integer>> partitions = Iterators.partition(source, 2);
        assertTrue(partitions.next() instanceof RandomAccess);
        assertTrue(partitions.next() instanceof RandomAccess);
      }
    
      public void testPaddedPartition_badSize() {
        Iterator<Integer> source = singletonIterator(1);
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Oct 28 18:44:53 GMT 2025
    - 56.7K bytes
    - Click Count (0)
Back to Top