Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 1,357 for order (0.13 sec)

  1. 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
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 19.5K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/SortedSetTestSuiteBuilder.java

        return testers;
      }
    
      @Override
      public TestSuite createTestSuite() {
        if (!getFeatures().contains(CollectionFeature.KNOWN_ORDER)) {
          List<Feature<?>> features = Helpers.copyToList(getFeatures());
          features.add(CollectionFeature.KNOWN_ORDER);
          withFeatures(features);
        }
        return super.createTestSuite();
      }
    
      @Override
      protected List<TestSuite> createDerivedSuites(
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 4.2K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapTestSuiteBuilder.java

        @Override
        public Entry<K, V>[] createArray(int length) {
          return (Entry<K, V>[]) new Entry<?, ?>[length];
        }
    
        @Override
        public Iterable<Entry<K, V>> order(List<Entry<K, V>> insertionOrder) {
          return multimapGenerator.order(insertionOrder);
        }
      }
    
      static class ValuesGenerator<K, V, M extends Multimap<K, V>>
          implements TestCollectionGenerator<V> {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 26.8K bytes
    - Viewed (0)
  4. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableCollection.java

        }
      }
    
      /** If this collection is backed by an array of its elements in insertion order, returns it. */
      Object @Nullable [] internalArray() {
        return null;
      }
    
      /**
       * If this collection is backed by an array of its elements in insertion order, returns the offset
       * where this collection's elements start.
       */
      int internalArrayStart() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 23 18:43:40 GMT 2024
    - 5K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/ImmutableCollection.java

     *       how the collection was created. Typically this is insertion order unless an explicit
     *       ordering is otherwise specified (e.g. {@link ImmutableSortedSet#naturalOrder}). See the
     *       appropriate factory method for details. View collections such as {@link
     *       ImmutableMultiset#elementSet} iterate in the same order as the parent, except as noted.
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 18.7K bytes
    - Viewed (1)
  6. android/guava/src/com/google/common/collect/SortedSetMultimap.java

       * for a given key in sorted order, but it need not expose the <i>keys</i> in sorted order.
       * Individual {@code SortedSetMultimap} implementations, like those built with {@link
       * MultimapBuilder#treeKeys()}, may make additional guarantees.
       */
      @Override
      Map<K, Collection<V>> asMap();
    
      /**
       * Returns the comparator that orders the multimap values, with {@code null} indicating that
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Jan 24 17:47:51 GMT 2022
    - 5.3K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/collect/testing/testers/CollectionForEachTester.java

      @CollectionFeature.Require(absent = KNOWN_ORDER)
      public void testForEachUnknownOrder() {
        List<E> elements = new ArrayList<>();
        collection.forEach(elements::add);
        Helpers.assertEqualIgnoringOrder(Arrays.asList(createSamplesArray()), elements);
      }
    
      @CollectionFeature.Require(KNOWN_ORDER)
      public void testForEachKnownOrder() {
        List<E> elements = new ArrayList<>();
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Oct 01 17:18:04 GMT 2021
    - 2K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/collect/testing/testers/ListToArrayTester.java

        Object[] actual = getList().toArray();
        assertArrayEquals("toArray() order should match list", createOrderedArray(), actual);
      }
    
      @CollectionSize.Require(absent = ZERO)
      public void testToArray_tooSmall() {
        Object[] actual = getList().toArray(new Object[0]);
        assertArrayEquals("toArray(tooSmall) order should match list", createOrderedArray(), actual);
      }
    
      public void testToArray_largeEnough() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 2.1K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/collect/testing/Helpers.java

                "contents were not equal and in the same order: "
                    + "expected = "
                    + expected
                    + ", actual = "
                    + actual);
          }
        }
    
        if (expectedIter.hasNext() || actualIter.hasNext()) {
          // actual either had too few or too many elements
          Assert.fail(
              "contents were not equal and in the same order: "
                  + "expected = "
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 17.7K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/TreeMultimapNaturalTest.java

                        }
                        return multimap;
                      }
    
                      @Override
                      public Iterable<Entry<String, String>> order(
                          List<Entry<String, String>> insertionOrder) {
                        return new Ordering<Entry<String, String>>() {
                          @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 22.6K bytes
    - Viewed (0)
Back to top