Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 133 for Element3 (0.21 sec)

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

       * elements.
       */
      @SafeVarargs
      public static <T extends @Nullable Object> Iterator<T> cycle(T... elements) {
        return cycle(Lists.newArrayList(elements));
      }
    
      /**
       * Returns an Iterator that walks the specified array, nulling out elements behind it. This can
       * avoid memory leaks when an element is no longer necessary.
       *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 03 14:46:32 UTC 2024
    - 50.2K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/Iterators.java

       * elements.
       */
      @SafeVarargs
      public static <T extends @Nullable Object> Iterator<T> cycle(T... elements) {
        return cycle(Lists.newArrayList(elements));
      }
    
      /**
       * Returns an Iterator that walks the specified array, nulling out elements behind it. This can
       * avoid memory leaks when an element is no longer necessary.
       *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 03 14:46:32 UTC 2024
    - 50.2K bytes
    - Viewed (0)
  3. subprojects/core/src/test/groovy/org/gradle/api/internal/AbstractDomainObjectCollectionSpec.groovy

        }
    
        List<T> iterationOrder(T... elements) {
            return elements
        }
    
        abstract boolean isExternalProviderAllowed()
    
        abstract boolean isDirectElementAdditionAllowed()
    
        abstract boolean isElementRemovalAllowed()
    
        void containerAllowsElementAddition() {
            assumeTrue("the container doesn't allow direct element addition", isDirectElementAdditionAllowed())
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 13:46:07 UTC 2024
    - 52.4K bytes
    - Viewed (0)
  4. 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 {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 78.8K bytes
    - Viewed (0)
  5. 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 {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sun Jun 02 13:36:19 UTC 2024
    - 77.3K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/SetsTest.java

      }
    
      // TODO b/327389044 - `Set<? extends Object> elements` should be enough but J2KT needs the <E>
      private static <E> void assertPowerSetHashCode(int expected, Set<E> elements) {
        assertEquals(expected, powerSet(elements).hashCode());
      }
    
      private static void assertPowerSetSize(int i, Object... elements) {
        assertEquals(i, powerSet(newHashSet(elements)).size());
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 17 15:27:58 UTC 2024
    - 49.2K bytes
    - Viewed (0)
  7. platforms/core-configuration/model-core/src/test/groovy/org/gradle/api/internal/provider/CollectionPropertySpec.groovy

            ex.message == "Cannot add a null element to a property of type ${type().simpleName}."
        }
    
        def "ignores convention after element added"() {
            expect:
            property.add("a")
            property.convention(["other"])
            assertValueIs(["a"])
        }
    
        def "ignores convention after element added using provider"() {
            expect:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 11:41:55 UTC 2024
    - 49.7K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/IteratorsTest.java

      private static final class PickyIterable<E> implements Iterable<E> {
        final List<E> elements;
        int modCount = 0;
    
        PickyIterable(E... elements) {
          this.elements = new ArrayList<E>(asList(elements));
        }
    
        @Override
        public Iterator<E> iterator() {
          return new PickyIterator();
        }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 03 13:01:51 UTC 2024
    - 55.7K bytes
    - Viewed (0)
  9. platforms/core-configuration/file-collections/src/test/groovy/org/gradle/api/internal/file/collections/DefaultConfigurableFileCollectionSpec.groovy

            !collection.explicit
        }
    
        def "elements provider tracks changes to content"() {
            given:
            def file1 = new File("1")
            def file2 = new File("2")
            def callable = Mock(Callable)
    
            collection.from(callable)
            def elements = collection.elements
    
            when:
            def f1 = elements.get()
    
            then:
            f1*.asFile == [file1, file2]
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 18 17:09:50 UTC 2024
    - 53K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/transforms/lower_static_tensor_list.cc

        RankedTensorType list_element_ty =
            subtypes.front().dyn_cast<RankedTensorType>();
        if (!list_element_ty) return failure();
    
        // Extract tensor elements for the TensorList and construct result type
        // based on the number of elements and element shape.
        const std::vector<tensorflow::Tensor> &tensors = list->tensors();
        llvm::SmallVector<int64_t, 4> result_shape = {
            static_cast<int64_t>(tensors.size())};
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 20:00:43 UTC 2024
    - 70.7K bytes
    - Viewed (0)
Back to top