Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 751 for element (0.14 sec)

  1. android/guava-tests/test/com/google/common/math/QuantilesAlgorithm.java

            double partition = array[from + 1]; // Choose partitioning element.
            while (true) {
              // Skip the elements smaller than the partition.
              do {
                low++;
              } while (array[low] < partition);
    
              // Skip the elements larger than the partition.
              do {
                high--;
              } while (array[high] > partition);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 01 16:30:37 GMT 2022
    - 7.1K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/graph/PackageSanityTests.java

        try {
          super.testNulls();
        } catch (AssertionFailedError e) {
          assertWithMessage("Method did not throw null pointer OR element not in graph exception.")
              .that(e)
              .hasCauseThat()
              .hasMessageThat()
              .contains(ERROR_ELEMENT_NOT_IN_GRAPH);
        }
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Nov 09 19:24:25 GMT 2023
    - 3.2K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/RegularImmutableMultiset.java

            elements[i] = entry.getElement();
            counts[i] = entry.getCount();
            i++;
          }
        }
    
        Object readResolve() {
          ImmutableMultiset.Builder<Object> builder =
              new ImmutableMultiset.Builder<Object>(elements.length);
          for (int i = 0; i < elements.length; i++) {
            builder.addCopies(elements[i], counts[i]);
          }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 4.1K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/Lists.java

          Iterable<? extends E> elements) {
        checkNotNull(elements); // for GWT
        // Let ArrayList's sizing logic work, if possible
        return (elements instanceof Collection)
            ? new ArrayList<>((Collection<? extends E>) elements)
            : newArrayList(elements.iterator());
      }
    
      /**
       * Creates a <i>mutable</i> {@code ArrayList} instance containing the given elements; a very thin
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 29 16:48:36 GMT 2024
    - 41.5K bytes
    - Viewed (0)
  5. android/guava-tests/benchmark/com/google/common/collect/ConcurrentHashMultisetBenchmark.java

        /**
         * Returns the number of occurrences of {@code element} in this multiset.
         *
         * @param element the element to look for
         * @return the nonnegative number of occurrences of the element
         */
        @Override
        public int count(@Nullable Object element) {
          try {
            return unbox(countMap.get(element));
          } catch (NullPointerException | ClassCastException e) {
            return 0;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Apr 06 12:56:11 GMT 2023
    - 16.6K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/util/concurrent/CollectionFuture.java

        }
    
        @Override
        public List<@Nullable V> combine(List<@Nullable Present<V>> values) {
          List<@Nullable V> result = newArrayListWithCapacity(values.size());
          for (Present<V> element : values) {
            result.add(element != null ? element.value : null);
          }
          return unmodifiableList(result);
        }
      }
    
      /** The result of a successful {@code Future}. */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 01 21:46:34 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/EvictingQueue.java

      }
    
      /**
       * Adds the given element to this queue. If the queue is currently full, the element at the head
       * of the queue is evicted to make room.
       *
       * @return {@code true} always
       */
      @Override
      @CanIgnoreReturnValue
      public boolean offer(E e) {
        return add(e);
      }
    
      /**
       * Adds the given element to this queue. If the queue is currently full, the element at the head
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri May 12 17:52:55 GMT 2023
    - 4.6K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java

            throw PermittedMetaException.ISE;
          }
        }
    
        private List<E> getElements() {
          List<E> elements = new ArrayList<>();
          Helpers.addAll(elements, previousElements);
          Helpers.addAll(elements, Helpers.reverse(nextElements));
          return elements;
        }
      }
    
      public enum KnownOrder {
        KNOWN_ORDER,
        UNKNOWN_ORDER
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 21.3K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/collect/testing/TestSortedSetGenerator.java

       */
      E belowSamplesLesser();
    
      /**
       * Returns an element less than the {@link #samples()} but greater than {@link
       * #belowSamplesLesser()}.
       */
      E belowSamplesGreater();
    
      /**
       * Returns an element greater than the {@link #samples()} but less than {@link
       * #aboveSamplesGreater()}.
       */
      E aboveSamplesLesser();
    
      /**
       * Returns an element greater than the {@link #samples()} and greater than {@link
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 1.7K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/TestSortedSetGenerator.java

       */
      E belowSamplesLesser();
    
      /**
       * Returns an element less than the {@link #samples()} but greater than {@link
       * #belowSamplesLesser()}.
       */
      E belowSamplesGreater();
    
      /**
       * Returns an element greater than the {@link #samples()} but less than {@link
       * #aboveSamplesGreater()}.
       */
      E aboveSamplesLesser();
    
      /**
       * Returns an element greater than the {@link #samples()} and greater than {@link
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 1.7K bytes
    - Viewed (0)
Back to top