Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 705 for elemnt (0.03 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/google/SetGenerators.java

          return ImmutableSet.copyOf(elements);
        }
      }
    
      public static class DegeneratedImmutableSetGenerator extends TestStringSetGenerator {
        @SuppressWarnings("DistinctVarargsChecker") // deliberately testing deduplication
        @Override
        protected Set<String> create(String[] elements) {
          return ImmutableSet.of(elements[0], elements[0]);
        }
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 15.9K bytes
    - Viewed (0)
  2. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSortedSet.java

          Comparator<? super E> comparator, E... elements) {
        checkNotNull(elements);
        switch (elements.length) {
          case 0:
            return emptySet(comparator);
          default:
            SortedSet<E> delegate = new TreeSet<E>(comparator);
            for (E element : elements) {
              checkNotNull(element);
              delegate.add(element);
            }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Aug 06 18:32:41 UTC 2025
    - 15.5K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/collection/SLinkedList.java

            final Entry entry = getEntry(index);
            final E oldValue = entry.element;
            entry.element = element;
            return oldValue;
        }
    
        /**
         * Returns the position of the element.
         *
         * @param element the element
         * @return the position
         */
        public int indexOf(final E element) {
            int index = 0;
            if (element == null) {
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jun 19 09:12:22 UTC 2025
    - 10.5K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionIteratorTester.java

        Iterator<E> iterator = collection.iterator();
        Object element = iterator.next();
        // If it's an Entry, it may become invalid once it's removed from the Map. Copy it.
        if (element instanceof Entry) {
          Entry<?, ?> entry = (Entry<?, ?>) element;
          element = mapEntry(entry.getKey(), entry.getValue());
        }
        assertTrue(collection.contains(element)); // sanity check
        iterator.remove();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 6.1K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/collection/CollectionsUtil.java

        }
    
        /**
         * Adds an element to the beginning of a sequenced collection.
         *
         * @param <E> the element type
         * @param collection the sequenced collection
         * @param element the element to add
         * @since Java 21
         */
        public static <E> void addFirst(final SequencedCollection<E> collection, final E element) {
            collection.addFirst(element);
        }
    
        /**
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 49.9K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/FluentIterable.java

       * Returns a fluent iterable containing the specified elements in order.
       *
       * <p><b>{@code Stream} equivalent:</b> {@link java.util.stream.Stream#of(Object[])
       * Stream.of(T...)}.
       *
       * @since 20.0
       */
      public static <E extends @Nullable Object> FluentIterable<E> of(
          @ParametricNullness E element, E... elements) {
        return from(Lists.asList(element, elements));
      }
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 35.3K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/FluentIterable.java

       * Returns a fluent iterable containing the specified elements in order.
       *
       * <p><b>{@code Stream} equivalent:</b> {@link java.util.stream.Stream#of(Object[])
       * Stream.of(T...)}.
       *
       * @since 20.0
       */
      public static <E extends @Nullable Object> FluentIterable<E> of(
          @ParametricNullness E element, E... elements) {
        return from(Lists.asList(element, elements));
      }
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 34.8K bytes
    - Viewed (0)
  8. 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.
     *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 22.4K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/SortedLists.java

         * {@code list.size()} if there is no such element.
         *
         * <p>Note that the return value will be {@code >= 0} if and only if there is an element of the
         * list that compares as equal to the key.
         *
         * <p>This is equivalent to the behavior of {@link java.util.Collections#binarySearch(List,
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/collect/testing/AbstractMapTester.java

      }
    
      protected void expectMissingKeys(K... elements) {
        for (K element : elements) {
          assertFalse("Should not contain key " + element, getMap().containsKey(element));
        }
      }
    
      protected void expectMissingValues(V... elements) {
        for (V element : elements) {
          assertFalse("Should not contain value " + element, getMap().containsValue(element));
        }
      }
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Jan 18 02:54:30 UTC 2025
    - 7.8K bytes
    - Viewed (0)
Back to top