Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 249 for addable (0.03 sec)

  1. android/guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java

        assertNull(mmHeap.peek());
        assertNull(mmHeap.poll());
      }
    
      public void testRemove() {
        MinMaxPriorityQueue<Integer> mmHeap = MinMaxPriorityQueue.create();
        mmHeap.addAll(Lists.newArrayList(1, 2, 3, 4, 47, 1, 5, 3, 0));
        assertTrue("Heap is not intact initially", mmHeap.isIntact());
        assertEquals(9, mmHeap.size());
        mmHeap.remove(5);
        assertEquals(8, mmHeap.size());
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 36K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/Collections2Test.java

                  @Override
                  public Collection<String> create(String[] elements) {
                    List<String> unfiltered = new ArrayList<>();
                    unfiltered.add("yyy");
                    Collections.addAll(unfiltered, elements);
                    unfiltered.add("zzz");
                    return Collections2.filter(unfiltered, NOT_YYY_ZZZ);
                  }
                })
            .named("Collections2.filter")
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 20.1K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/primitives/ImmutableLongArray.java

       * Builder#addAll(Iterable)}, with all the performance implications associated with that.
       */
      public static ImmutableLongArray copyOf(Iterable<Long> values) {
        if (values instanceof Collection) {
          return copyOf((Collection<Long>) values);
        }
        return builder().addAll(values).build();
      }
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 22K bytes
    - Viewed (0)
  4. guava/src/com/google/common/primitives/ImmutableIntArray.java

       * Builder#addAll(Iterable)}, with all the performance implications associated with that.
       */
      public static ImmutableIntArray copyOf(Iterable<Integer> values) {
        if (values instanceof Collection) {
          return copyOf((Collection<Integer>) values);
        }
        return builder().addAll(values).build();
      }
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 21.4K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/ImmutableRangeSet.java

         * and will be merged, but overlapping ranges will cause an exception when {@link #build()} is
         * called.
         */
        @CanIgnoreReturnValue
        public Builder<C> addAll(RangeSet<C> ranges) {
          return addAll(ranges.asRanges());
        }
    
        /**
         * Add all of the specified ranges to this builder. Adjacent ranges are permitted and will be
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 27.4K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/math/MathTesting.java

      static final Iterable<Long> ALL_LONG_CANDIDATES;
    
      static {
        ImmutableSet.Builder<Long> longValues = ImmutableSet.builder();
        // First add all the integer candidate values.
        longValues.addAll(Iterables.transform(POSITIVE_INTEGER_CANDIDATES, TO_LONG));
        // Add boundary values manually to avoid over/under flow (this covers 2^N for 31 and 63).
        longValues.add(Integer.MAX_VALUE + 1L, Long.MAX_VALUE - 1L, Long.MAX_VALUE);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/dict/DictionaryFile.java

                return parent.containsAll(c);
            }
    
            @Override
            public boolean addAll(final Collection<? extends E> c) {
                return parent.addAll(c);
            }
    
            @Override
            public boolean addAll(final int index, final Collection<? extends E> c) {
                return parent.addAll(index, c);
            }
    
            @Override
            public boolean removeAll(final Collection<?> c) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/ImmutableCollection.java

          contents[size++] = element;
          return this;
        }
    
        @CanIgnoreReturnValue
        @Override
        public Builder<E> add(E... elements) {
          addAll(elements, elements.length);
          return this;
        }
    
        final void addAll(@Nullable Object[] elements, int n) {
          checkElementsNotNull(elements, n);
          ensureRoomFor(n);
          /*
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 21.4K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/collect/testing/ListIteratorTester.java

      }
    
      @Override
      protected final Iterable<? extends Stimulus<E, ? super ListIterator<E>>> getStimulusValues() {
        List<Stimulus<E, ? super ListIterator<E>>> list = new ArrayList<>();
        Helpers.addAll(list, iteratorStimuli());
        Helpers.addAll(list, listIteratorStimuli());
        return list;
      }
    
      @Override
      protected abstract ListIterator<E> newTargetIterator();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/Queues.java

        if (elements instanceof Collection) {
          return new ArrayDeque<>((Collection<? extends E>) elements);
        }
        ArrayDeque<E> deque = new ArrayDeque<>();
        Iterables.addAll(deque, elements);
        return deque;
      }
    
      // ConcurrentLinkedQueue
    
      /** Creates an empty {@code ConcurrentLinkedQueue}. */
      @J2ktIncompatible
      @GwtIncompatible // ConcurrentLinkedQueue
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 18.1K bytes
    - Viewed (0)
Back to top