Search Options

Results per page
Sort
Preferred Languages
Advance

Results 161 - 170 of 287 for Ordering$ (0.08 sec)

  1. android/guava-tests/test/com/google/common/graph/AbstractStandardUndirectedGraphTest.java

        putEdge(N2, N1);
        assertThat(graph.outDegree(N1)).isEqualTo(3);
      }
    
      // Stable order tests
    
      // Note: Stable order means that the ordering doesn't change between iterations and versions.
      // Ideally, the ordering in test should never be updated.
      @Test
      public void stableIncidentEdgeOrder_edges_returnsInStableOrder() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  2. guava/src/com/google/common/graph/GraphConstants.java

      static final String EDGE_ALREADY_EXISTS = "Edge %s already exists in the graph.";
      static final String ENDPOINTS_MISMATCH =
          "Mismatch: endpoints' ordering is not compatible with directionality of the graph";
    
      /** Singleton edge value for {@link Graph} implementations backed by {@link ValueGraph}s. */
      enum Presence {
        EDGE_EXISTS
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jan 22 17:29:38 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/ForwardingSortedMapImplementsMapTest.java

        super(true, true, true, true, true);
      }
    
      @Override
      protected SortedMap<String, Integer> makeEmptyMap() {
        return new SimpleForwardingSortedMap<>(
            new TreeMap<String, Integer>(Ordering.<String>natural().nullsFirst()));
      }
    
      @Override
      protected SortedMap<String, Integer> makePopulatedMap() {
        final SortedMap<String, Integer> sortedMap = makeEmptyMap();
        sortedMap.put("one", 1);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Mar 07 18:34:03 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/RegularImmutableTable.java

          @CheckForNull Comparator<? super C> columnComparator) {
        checkNotNull(cells);
        if (rowComparator != null || columnComparator != null) {
          /*
           * This sorting logic leads to a cellSet() ordering that may not be expected and that isn't
           * documented in the Javadoc. If a row Comparator is provided, cellSet() iterates across the
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/ImmutableMultimap.java

          return putAll(key, asList(values));
        }
    
        /**
         * Stores another multimap's entries in the built multimap. The generated multimap's key and
         * value orderings correspond to the iteration ordering of the {@code multimap.asMap()} view,
         * with new keys and values following any existing keys and values.
         *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 27.9K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/testing/FreshValueGenerator.java

      }
    
      @Generates
      <T extends @Nullable Object> Ordering<T> generateOrdering() {
        return new Ordering<T>() {
          @Override
          @SuppressWarnings("UnusedVariable") // intentionally weird Comparator
          public int compare(T left, T right) {
            return 0;
          }
    
          final String string = paramString(Ordering.class, generateInt());
    
          @Override
          public String toString() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 28.7K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/DescendingMultiset.java

      @Override
      public Comparator<? super E> comparator() {
        Comparator<? super E> result = comparator;
        if (result == null) {
          return comparator = Ordering.from(forwardMultiset().comparator()).<E>reverse();
        }
        return result;
      }
    
      @LazyInit @CheckForNull private transient NavigableSet<E> elementSet;
    
      @Override
      public NavigableSet<E> elementSet() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jun 26 21:02:13 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/graph/ValueGraphTest.java

      }
    
      @Test
      public void edgeValue_undirected_mismatch() {
        graph = ValueGraphBuilder.undirected().build();
        graph.putEdgeValue(1, 2, "A");
        // Check that edgeValue() throws on each possible ordering of an ordered EndpointPair
        IllegalArgumentException e =
            assertThrows(
                IllegalArgumentException.class, () -> graph.edgeValue(EndpointPair.ordered(1, 2)));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 06 18:35:19 UTC 2024
    - 20K bytes
    - Viewed (0)
  9. guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/LocalCache.java

      }
    
      Set<K> keySet;
    
      @Override
      public Set<K> keySet() {
        // does not impact recency ordering
        Set<K> ks = keySet;
        return (ks != null) ? ks : (keySet = new KeySet(this));
      }
    
      Collection<V> values;
    
      @Override
      public Collection<V> values() {
        // does not impact recency ordering
        Collection<V> vs = values;
        return (vs != null) ? vs : (values = new Values(this));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 27 19:19:19 UTC 2024
    - 21.6K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/ImmutableRangeSetTest.java

        }
    
        @Override
        public Integer[] createArray(int length) {
          return new Integer[length];
        }
    
        @Override
        public Iterable<Integer> order(List<Integer> insertionOrder) {
          return Ordering.natural().sortedCopy(insertionOrder);
        }
    
        @Override
        public Set<Integer> create(Object... elements) {
          ImmutableRangeSet.Builder<Integer> builder = ImmutableRangeSet.builder();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 21.5K bytes
    - Viewed (0)
Back to top