Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 101 - 110 of 234 for Ordered (0.04 seconds)

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

        assertThat(Floats.join(",", 1.0f, 2.0f)).isEqualTo("1.0,2.0");
        assertThat(Floats.join("", 1.0f, 2.0f, 3.0f)).isEqualTo("1.02.03.0");
      }
    
      public void testLexicographicalComparator() {
        List<float[]> ordered =
            Arrays.asList(
                new float[] {},
                new float[] {LEAST},
                new float[] {LEAST, LEAST},
                new float[] {LEAST, 1.0f},
                new float[] {1.0f},
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Mar 08 01:43:32 GMT 2026
    - 29.4K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/io/CharSource.java

       * Consumer creation.
       */
      @IgnoreJRERequirement
      public void forEachLine(Consumer<? super String> action) throws IOException {
        try (Stream<String> lines = lines()) {
          // The lines should be ordered regardless in most cases, but use forEachOrdered to be sure
          lines.forEachOrdered(action);
        } catch (UncheckedIOException e) {
          throw e.getCause();
        }
      }
    
      /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 23 19:19:10 GMT 2026
    - 25.7K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/util/concurrent/CycleDetectingLockFactory.java

       * lock1.lock();
       * lock3.lock();
       * lock2.lock(); // will throw an IllegalStateException
       * }
       *
       * <p>As with all locks created by instances of {@code CycleDetectingLockFactory} explicitly
       * ordered locks participate in general cycle detection with all other cycle detecting locks, and
       * a lock's behavior when detecting a cyclic lock acquisition is defined by the {@code Policy} of
       * the factory that created it.
       *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 36K bytes
    - Click Count (0)
  4. android/guava-tests/test/com/google/common/graph/AbstractStandardDirectedGraphTest.java

        populateStarShapedGraph();
    
        assertThat(graph.edges())
            .containsExactly(
                EndpointPair.ordered(2, 1),
                EndpointPair.ordered(1, 4),
                EndpointPair.ordered(1, 3),
                EndpointPair.ordered(1, 2),
                EndpointPair.ordered(3, 1),
                EndpointPair.ordered(5, 1))
            .inOrder();
      }
    
      @Test
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Oct 06 20:14:55 GMT 2025
    - 14.4K bytes
    - Click Count (0)
  5. android/guava/src/com/google/common/hash/Hashing.java

            return candidate;
          }
        }
      }
    
      /**
       * Returns a hash code, having the same bit length as each of the input hash codes, that combines
       * the information of these hash codes in an ordered fashion. That is, whenever two equal hash
       * codes are produced by two calls to this method, it is <i>as likely as possible</i> that each
       * was computed from the <i>same</i> input hash codes in the <i>same</i> order.
       *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Jul 17 15:26:41 GMT 2025
    - 29.8K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/graph/Graph.java

     * terms</a>):
     *
     * <ul>
     *   <li>directed graphs
     *   <li>undirected graphs
     *   <li>graphs that do/don't allow self-loops
     *   <li>graphs whose nodes/edges are insertion-ordered, sorted, or unordered
     * </ul>
     *
     * <p>{@code Graph} explicitly does not support parallel edges, and forbids implementations or
     * extensions with parallel edges. If you need parallel edges, use {@link Network}.
     *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 11 01:10:31 GMT 2026
    - 13.6K bytes
    - Click Count (0)
  7. guava-tests/test/com/google/common/graph/ImmutableValueGraphTest.java

                .putEdgeValue(1, 2, "1-2")
                .build();
    
        assertThat(graph.incidentEdges(2))
            .containsExactly(
                EndpointPair.ordered(2, 1), EndpointPair.ordered(2, 3), EndpointPair.ordered(1, 2))
            .inOrder();
      }
    
      @Test
      public void immutableValueGraphBuilder_incidentEdgeOrder_stable() {
        ImmutableValueGraph<Integer, String> graph =
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Sep 30 17:09:51 GMT 2025
    - 6.4K bytes
    - Click Count (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/MapInterfaceTest.java

     * @author George van den Driessche
     */
    // TODO: Descriptive assertion messages, with hints as to probable fixes.
    // TODO: Add another constructor parameter indicating whether the class under test is ordered, and
    // check the order if so.
    // TODO: Refactor to share code with SetTestBuilder etc.
    @GwtCompatible
    @NullMarked
    public abstract class MapInterfaceTest<K extends @Nullable Object, V extends @Nullable Object>
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Aug 11 19:31:30 GMT 2025
    - 43.9K bytes
    - Click Count (0)
  9. android/guava/src/com/google/common/collect/ImmutableSortedMap.java

                ImmutableList.<V>asImmutableList(values));
        }
      }
    
      /**
       * Returns a builder that creates immutable sorted maps whose keys are ordered by their natural
       * ordering. The sorted maps use {@link Ordering#natural()} as the comparator.
       */
      public static <K extends Comparable<?>, V> Builder<K, V> naturalOrder() {
        return new Builder<>(Ordering.natural());
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Jan 08 18:10:02 GMT 2026
    - 54.7K bytes
    - Click Count (0)
  10. android/guava-tests/test/com/google/common/graph/StandardImmutableGraphAdditionalTest.java

        assertThat(graph.nodes()).containsExactly("A", "B");
        assertThat(graph.edges()).containsExactly(EndpointPair.ordered("A", "B"));
      }
    
      @Test
      public void immutableGraphBuilder_putEdgeFromEndpointPair() {
        ImmutableGraph<String> graph =
            GraphBuilder.directed().<String>immutable().putEdge(EndpointPair.ordered("A", "B")).build();
    
        assertThat(graph.nodes()).containsExactly("A", "B");
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Dec 19 18:03:30 GMT 2024
    - 4.5K bytes
    - Click Count (0)
Back to Top