Search Options

Results per page
Sort
Preferred Languages
Advance

Results 231 - 240 of 300 for reordering (0.09 sec)

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

            Collections.addAll(multiset, elements);
            return multiset;
          }
    
          @Override
          public List<String> order(List<String> insertionOrder) {
            return Ordering.natural().sortedCopy(insertionOrder);
          }
        };
      }
    
      private static final String KEY = "puppies";
    
      ConcurrentMap<String, AtomicInteger> backingMap;
      ConcurrentHashMultiset<String> multiset;
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 14.2K bytes
    - Viewed (0)
  2. guava/src/com/google/common/graph/ImmutableValueGraph.java

      private static <N, V> ImmutableMap<N, GraphConnections<N, V>> getNodeConnections(
          ValueGraph<N, V> graph) {
        // ImmutableMap.Builder maintains the order of the elements as inserted, so the map will have
        // whatever ordering the graph's nodes do, so ImmutableSortedMap is unnecessary even if the
        // input nodes are sorted.
        ImmutableMap.Builder<N, GraphConnections<N, V>> nodeConnections = ImmutableMap.builder();
        for (N node : graph.nodes()) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 01 16:30:37 UTC 2022
    - 7.7K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/RegularImmutableSortedSet.java

    @ElementTypesAreNonnullByDefault
    final class RegularImmutableSortedSet<E> extends ImmutableSortedSet<E> {
      static final RegularImmutableSortedSet<Comparable> NATURAL_EMPTY_SET =
          new RegularImmutableSortedSet<>(ImmutableList.<Comparable>of(), Ordering.natural());
    
      private final transient ImmutableList<E> elements;
    
      RegularImmutableSortedSet(ImmutableList<E> elements, Comparator<? super E> comparator) {
        super(comparator);
        this.elements = elements;
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/AbstractContainerTester.java

      /**
       * Asserts that the collection under test contains exactly the given elements, respecting
       * cardinality but not order. Subclasses may override this method to provide stronger assertions,
       * e.g., to check ordering in lists, but realize that <strong>unless a test extends {@link
       * com.google.common.collect.testing.testers.AbstractListTester AbstractListTester}, a call to
       * {@code expectContents()} invokes this version</strong>.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/QueuesTest.java

            new SynchronousQueue<Object>(),
            new ArrayBlockingQueue<Object>(10),
            new LinkedBlockingDeque<Object>(),
            new LinkedBlockingDeque<Object>(10),
            new PriorityBlockingQueue<Object>(10, Ordering.arbitrary()));
      }
    
      /*
       * We need to perform operations in a thread pool, even for simple cases, because the queue might
       * be a SynchronousQueue.
       */
      private ExecutorService threadPool;
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 02:42:09 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/cache/LocalCacheTest.java

                    .concurrencyLevel(1)
                    .ticker(ticker)
                    .expireAfterAccess(1, NANOSECONDS));
        Segment<Object, Object> segment = map.segments[0];
        // TODO(fry): check recency ordering
    
        Object key = new Object();
        int hash = map.hash(key);
        Object value = new Object();
        AtomicReferenceArray<ReferenceEntry<Object, Object>> table = segment.table;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 110.6K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/cache/LocalCacheTest.java

                    .concurrencyLevel(1)
                    .ticker(ticker)
                    .expireAfterAccess(1, NANOSECONDS));
        Segment<Object, Object> segment = map.segments[0];
        // TODO(fry): check recency ordering
    
        Object key = new Object();
        int hash = map.hash(key);
        Object value = new Object();
        AtomicReferenceArray<ReferenceEntry<Object, Object>> table = segment.table;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 112.3K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/ForwardingNavigableSet.java

     * invoke methods, they invoke methods on the {@code ForwardingNavigableSet}.
     *
     * <p>Each of the {@code standard} methods uses the set's comparator (or the natural ordering of the
     * elements, if there is no comparator) to test element equality. As a result, if the comparator is
     * not consistent with equals, some of the standard implementations may violate the {@code Set}
     * contract.
     *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri May 12 15:26:39 UTC 2023
    - 9K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/graph/AbstractNetwork.java

        if (!isOrderingCompatible(endpoints)) {
          return false;
        }
        return hasEdgeConnecting(endpoints.nodeU(), endpoints.nodeV());
      }
    
      /**
       * Throws an IllegalArgumentException if the ordering of {@code endpoints} is not compatible with
       * the directionality of this graph.
       */
      protected final void validateEndpoints(EndpointPair<?> endpoints) {
        checkNotNull(endpoints);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Mar 13 18:17:09 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  10. guava/src/com/google/common/graph/AbstractNetwork.java

        if (!isOrderingCompatible(endpoints)) {
          return false;
        }
        return hasEdgeConnecting(endpoints.nodeU(), endpoints.nodeV());
      }
    
      /**
       * Throws an IllegalArgumentException if the ordering of {@code endpoints} is not compatible with
       * the directionality of this graph.
       */
      protected final void validateEndpoints(EndpointPair<?> endpoints) {
        checkNotNull(endpoints);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Mar 13 18:17:09 UTC 2024
    - 10.4K bytes
    - Viewed (0)
Back to top