Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 222 for ImmutableList (1.69 sec)

  1. platforms/core-configuration/model-core/src/test/groovy/org/gradle/api/internal/provider/DefaultListPropertyTest.groovy

            return "list"
        }
    
        @Override
        protected Class<? extends ImmutableCollection<?>> getImmutableCollectionType() {
            return ImmutableList.class
        }
    
        @Override
        protected List<String> toImmutable(Collection<String> values) {
            return ImmutableList.copyOf(values)
        }
    
        @Override
        protected List<String> toMutable(Collection<String> values) {
            return new ArrayList<String>(values)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Feb 07 13:43:02 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/snapshot/impl/DefaultIsolatableFactory.java

            @Override
            public Isolatable<?> list(ImmutableList<Isolatable<?>> elements) {
                return new IsolatedList(elements);
            }
    
            @Override
            public Isolatable<?> set(ImmutableSet<Isolatable<?>> elements) {
                return new IsolatedSet(elements);
            }
    
            @Override
            public Isolatable<?> map(ImmutableList<MapEntrySnapshot<Isolatable<?>>> elements) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 26 22:53:34 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/ImmutableCollection.java

       * subject to change.
       *
       * @since 2.0
       */
      public ImmutableList<E> asList() {
        switch (size()) {
          case 0:
            return ImmutableList.of();
          case 1:
            return ImmutableList.of(iterator().next());
          default:
            return new RegularImmutableAsList<>(this, toArray());
        }
      }
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 18.7K bytes
    - Viewed (0)
  4. platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/steps/SkipUpToDateStep.java

                previousExecutionState.getOriginMetadata().getExecutionTime(),
                execution,
                executionOutputState,
                ImmutableList.of(),
                previousExecutionState.getOriginMetadata()
            );
        }
    
        private UpToDateResult executeBecause(UnitOfWork work, ImmutableList<String> reasons, C context) {
            logExecutionReasons(reasons, work);
            AfterExecutionResult result = delegate.execute(work, context);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 16:02:34 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/JdkBackedImmutableMultiset.java

            entriesArray[i] = Multisets.immutableEntry(element, count);
          }
        }
        return new JdkBackedImmutableMultiset<>(
            delegateMap, ImmutableList.asImmutableList(entriesArray), size);
      }
    
      private JdkBackedImmutableMultiset(
          Map<E, Integer> delegateMap, ImmutableList<Entry<E>> entries, long size) {
        this.delegateMap = delegateMap;
        this.entries = entries;
        this.size = size;
      }
    
      @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  6. platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/steps/NeverUpToDateStep.java

    package org.gradle.internal.execution.steps;
    
    import com.google.common.collect.ImmutableList;
    import org.gradle.internal.execution.UnitOfWork;
    
    public class NeverUpToDateStep<C extends NonIncrementalCachingContext> implements Step<C, UpToDateResult> {
        // TODO Use a better explanation?
        private static final ImmutableList<String> NO_HISTORY = ImmutableList.of("No history is available.");
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jan 29 17:44:52 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  7. platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/steps/AbstractCaptureStateBeforeExecutionStep.java

            private final ClassLoaderHierarchyHasher classLoaderHierarchyHasher;
            private ImplementationSnapshot implementation;
            private final ImmutableList.Builder<ImplementationSnapshot> additionalImplementations = ImmutableList.builder();
    
            public ImplementationsBuilder(ClassLoaderHierarchyHasher classLoaderHierarchyHasher) {
                this.classLoaderHierarchyHasher = classLoaderHierarchyHasher;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 10:36:34 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/base/EquivalenceTest.java

        EquivalenceTester.of(Equivalence.equals().<String>pairwise())
            .addEquivalenceGroup(ImmutableList.<String>of())
            .addEquivalenceGroup(ImmutableList.of("a"))
            .addEquivalenceGroup(ImmutableList.of("b"))
            .addEquivalenceGroup(ImmutableList.of("a", "b"), ImmutableList.of("a", "b"))
            .test();
      }
    
      public void testPairwiseEquivalent_equals() {
        new EqualsTester()
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 20 17:00:05 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/base/OptionalTest.java

        List<Optional<String>> optionals =
            ImmutableList.of(Optional.of("a"), Optional.of("b"), Optional.of("c"));
        assertThat(Optional.presentInstances(optionals)).containsExactly("a", "b", "c").inOrder();
      }
    
      public void testPresentInstances_allAbsent() {
        List<Optional<Object>> optionals = ImmutableList.of(Optional.absent(), Optional.absent());
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 21 18:32:41 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  10. platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/steps/ValidateStep.java

            }
    
            Map<Severity, ImmutableList<Problem>> problemsMap = problems.stream()
                .collect(
                    groupingBy(p -> p.getDefinition().getSeverity(),
                        mapping(identity(), toImmutableList())));
            List<Problem> warnings = problemsMap.getOrDefault(WARNING, ImmutableList.of());
            List<Problem> errors = problemsMap.getOrDefault(ERROR, ImmutableList.of());
    
            if (!warnings.isEmpty()) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 8.9K bytes
    - Viewed (0)
Back to top