Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 562 for ordered (0.04 sec)

  1. android/guava-tests/test/com/google/common/primitives/UnsignedLongsTest.java

        assertThat(min(0x5a4316b8c153ac4dL, 8L, 100L, 0L, 0x6cf78a4b139a4e2aL, 0xff1a618b7f65ea12L))
            .isEqualTo(0L);
      }
    
      public void testLexicographicalComparator() {
        List<long[]> ordered =
            Arrays.asList(
                new long[] {},
                new long[] {LEAST},
                new long[] {LEAST, LEAST},
                new long[] {LEAST, 1L},
                new long[] {1L},
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/CompactHashMap.java

            return Spliterators.spliterator(new Object[0], Spliterator.DISTINCT | Spliterator.ORDERED);
          }
          Map<K, V> delegate = delegateOrNull();
          return (delegate != null)
              ? delegate.keySet().spliterator()
              : Spliterators.spliterator(
                  requireKeys(), 0, size, Spliterator.DISTINCT | Spliterator.ORDERED);
        }
    
        @Override
        public void forEach(Consumer<? super K> action) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 39.6K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/SortedIterables.java

        } else {
          return false;
        }
        return comparator.equals(comparator2);
      }
    
      @SuppressWarnings("unchecked")
      // if sortedSet.comparator() is null, the set must be naturally ordered
      public static <E extends @Nullable Object> Comparator<? super E> comparator(
          SortedSet<E> sortedSet) {
        Comparator<? super E> result = sortedSet.comparator();
        if (result == null) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 2K bytes
    - Viewed (0)
  4. android/guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedPriorityBlockingQueue.java

     * is not guaranteed to traverse the elements of the MonitorBasedPriorityBlockingQueue in
     * any particular order. If you need ordered traversal, consider using {@code
     * Arrays.sort(pq.toArray())}. Also, method {@code drainTo} can be used to remove some or
     * all elements in priority order and place them in another collection.
     *
     * <p>Operations on this class make no guarantees about the ordering of elements with equal
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 18.9K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/TreeBasedTable.java

        return new TreeBasedTable<>(Ordering.natural(), Ordering.natural());
      }
    
      /**
       * Creates an empty {@code TreeBasedTable} that is ordered by the specified comparators.
       *
       * @param rowComparator the comparator that orders the row keys
       * @param columnComparator the comparator that orders the column keys
       */
      public static <R, C, V> TreeBasedTable<R, C, V> create(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 18 15:05:43 UTC 2025
    - 11.6K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/AbstractContainerTester.java

       * TestContainerGenerator#order(List)}. Tests should use this method only if they declare
       * requirement {@link com.google.common.collect.testing.features.CollectionFeature#KNOWN_ORDER}.
       */
      protected List<E> getOrderedElements() {
        List<E> list = new ArrayList<>();
        for (E e : getSubjectGenerator().order(new ArrayList<E>(getSampleElements()))) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/ImmutableSortedSet.java

       * instead.
       *
       * @throws NullPointerException if {@code comparator} is null
       */
      public static <E> Builder<E> orderedBy(Comparator<E> comparator) {
        return new Builder<>(comparator);
      }
    
      /**
       * Returns a builder that creates immutable sorted sets whose elements are ordered by the reverse
       * of their natural ordering.
       */
      public static <E extends Comparable<?>> Builder<E> reverseOrder() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 36.8K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/graph/PackageSanityTests.java

        setDistinctValues(NetworkBuilder.class, networkBuilderA, networkBuilderB);
        setDistinctValues(Network.class, IMMUTABLE_NETWORK_A, IMMUTABLE_NETWORK_B);
        setDefault(EndpointPair.class, EndpointPair.ordered("A", "B"));
      }
    
      @Override
      public void testNulls() throws Exception {
        try {
          super.testNulls();
        } catch (AssertionError e) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 28 01:26:26 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionIteratorTester.java

        for (E element : collection) { // uses iterator()
          iteratorElements.add(element);
        }
        List<E> expected = copyToList(getOrderedElements());
        assertEquals("Different ordered iteration", expected, iteratorElements);
      }
    
      @CollectionFeature.Require(ALLOWS_NULL_VALUES)
      @CollectionSize.Require(absent = ZERO)
      public void testIterator_nullElement() {
        initCollectionWithNullElement();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 6.1K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/LinkedHashMultimap.java

     * the keys in the order they were first added to the multimap. Similarly, {@code get}, {@code
     * removeAll}, and {@code replaceValues} return collections that iterate through the values in the
     * order they were added. The collections generated by {@code entries} and {@code values} iterate
     * across the key-value mappings in the order they were added to the multimap.
     *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 19.1K bytes
    - Viewed (0)
Back to top