Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,217 for elements (0.2 sec)

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

         */
        @CanIgnoreReturnValue
        @Override
        public Builder<E> add(E element) {
          return addCopies(element, 1);
        }
    
        /**
         * Adds each element of {@code elements} to the {@code ImmutableSortedMultiset}.
         *
         * @param elements the elements to add
         * @return this {@code Builder} object
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 35.3K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/google/ListGenerators.java

        @Override
        protected List<String> create(String[] elements) {
          String[] suffix = {"f", "g"};
          String[] all = new String[elements.length + suffix.length];
          System.arraycopy(elements, 0, all, 0, elements.length);
          System.arraycopy(suffix, 0, all, elements.length, suffix.length);
          return ImmutableList.copyOf(all).subList(0, elements.length);
        }
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 5K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/ImmutableListCopyOfConcurrentlyModifiedInputTest.java

         */
        runConcurrentlyMutatedTest(elements(), ops(add(1), add(2)), wrap);
    
        runConcurrentlyMutatedTest(elements(), ops(add(1), nop()), wrap);
    
        runConcurrentlyMutatedTest(elements(), ops(add(1), remove()), wrap);
    
        runConcurrentlyMutatedTest(elements(), ops(nop(), add(1)), wrap);
    
        runConcurrentlyMutatedTest(elements(1), ops(remove(), nop()), wrap);
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 6.6K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/Queues.java

      }
    
      /**
       * Creates an {@code ArrayDeque} containing the elements of the specified iterable, in the order
       * they are returned by the iterable's iterator.
       *
       * @since 12.0
       */
      public static <E> ArrayDeque<E> newArrayDeque(Iterable<? extends E> elements) {
        if (elements instanceof Collection) {
          return new ArrayDeque<>((Collection<? extends E>) elements);
        }
        ArrayDeque<E> deque = new ArrayDeque<>();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 16K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/primitives/FloatArrayAsListTest.java

        @Override
        protected List<Float> create(Float[] elements) {
          return asList(elements);
        }
      }
    
      public static final class FloatsAsListHeadSubListGenerator extends TestFloatListGenerator {
        @Override
        protected List<Float> create(Float[] elements) {
          Float[] suffix = {Float.MIN_VALUE, Float.MAX_VALUE};
          Float[] all = concat(elements, suffix);
          return asList(all).subList(0, elements.length);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Jun 01 09:32:35 GMT 2023
    - 5.6K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/EnumMultiset.java

       * Creates a new {@code EnumMultiset} containing the specified elements.
       *
       * <p>This implementation is highly efficient when {@code elements} is itself a {@link Multiset}.
       *
       * @param elements the elements that the multiset should contain
       * @throws IllegalArgumentException if {@code elements} is empty
       */
      public static <E extends Enum<E>> EnumMultiset<E> create(Iterable<E> elements) {
        Iterator<E> iterator = elements.iterator();
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 9.3K bytes
    - Viewed (0)
  7. android/guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedArrayBlockingQueue.java

     * elements FIFO (first-in-first-out). The head of the queue is that element that has been
     * on the queue the longest time. The tail of the queue is that element that has been on
     * the queue the shortest time. New elements are inserted at the tail of the queue, and the queue
     * retrieval operations obtain elements at the head of the queue.
     *
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 22.5K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/collect/testing/google/ListGenerators.java

        @Override
        protected List<String> create(String[] elements) {
          String[] suffix = {"f", "g"};
          String[] all = new String[elements.length + suffix.length];
          System.arraycopy(elements, 0, all, 0, elements.length);
          System.arraycopy(suffix, 0, all, elements.length, suffix.length);
          return ImmutableList.copyOf(all).subList(0, elements.length);
        }
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 5K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/ListsTest.java

                      @Override
                      protected List<String> create(String[] elements) {
                        String[] rest = new String[elements.length - 2];
                        System.arraycopy(elements, 2, rest, 0, elements.length - 2);
                        return Lists.asList(elements[0], elements[1], rest);
                      }
                    })
                .named("Lists.asList, 3 parameter")
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 35.2K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java

          for (int i = 0; i < 100; i++) {
            Element element = Element.values()[random.nextInt(range)];
            elements.add(element);
            queue.add(element);
          }
          Iterator<Element> queueIterator = queue.iterator();
          int remaining = queue.size();
          while (queueIterator.hasNext()) {
            Element element = queueIterator.next();
            remaining--;
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 36.1K bytes
    - Viewed (0)
Back to top