Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 558 for it (0.12 sec)

  1. guava-testlib/src/com/google/common/collect/testing/google/SetGenerators.java

          List<Integer> elements = newArrayList(elementsSet);
          /*
           * A ContiguousSet can't have holes. If a test demands a hole, it should be changed so that it
           * doesn't need one, or it should be suppressed for ContiguousSet.
           */
          for (int i = 0; i < elements.size() - 1; i++) {
            assertEquals(elements.get(i) + 1, (int) elements.get(i + 1));
          }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 15.5K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/primitives/ImmutableDoubleArrayTest.java

            .containsExactly(0.0, 1.0, 3.0, 6.0, 10.0, 15.0, 21.0)
            .inOrder();
      }
    
      public void testCopyOf_array_empty() {
        /*
         * We don't guarantee the same-as property, so we aren't obligated to test it. However, it's
         * useful in testing - when two things are the same then one can't have bugs the other doesn't.
         */
        assertThat(ImmutableDoubleArray.copyOf(new double[0]))
            .isSameInstanceAs(ImmutableDoubleArray.of());
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Jun 01 09:32:35 GMT 2023
    - 21.3K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/collect/testing/Helpers.java

        List<?> act = copyToList(actual);
        String actString = act.toString();
    
        // Of course we could take pains to give the complete description of the
        // problem on any failure.
    
        // Yeah it's n^2.
        for (Object object : exp) {
          if (!act.remove(object)) {
            Assert.fail(
                "did not contain expected element "
                    + object
                    + ", "
    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)
  4. android/guava/src/com/google/common/graph/Traverser.java

     * based on your answers to the following questions:
     *
     * <ol>
     *   <li>Is there only one path to any node that's reachable from any start node? (If so, the graph
     *       to be traversed is a tree or forest even if it is a subgraph of a graph which is neither.)
     *   <li>Are the node objects' implementations of {@code equals()}/{@code hashCode()} <a
     *       href="https://github.com/google/guava/wiki/GraphsExplained#non-recursiveness">recursive</a>?
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue May 30 20:12:45 GMT 2023
    - 19.8K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/primitives/Floats.java

       *
       * <p>The returned list maintains the values, but not the identities, of {@code Float} objects
       * written to or read from it. For example, whether {@code list.get(0) == list.get(0)} is true for
       * the returned list is unspecified.
       *
       * <p>The returned list may have unexpected behavior if it contains {@code NaN}, or if {@code NaN}
       * is used as a parameter to any of its methods.
       *
       * <p>The returned list is serializable.
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 29 15:43:06 GMT 2024
    - 25.2K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java

       *       factories are tried one after another until one can be used to construct sample
       *       instances.
       *   <li>For the constructor or static factory method used to construct instances, it's checked
       *       that when equal parameters are passed, the result instance should also be equal; and vice
       *       versa.
       *   <li>If a non-private constructor or non-private static factory method exists:
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 08 17:31:55 GMT 2024
    - 33K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/util/concurrent/RateLimiter.java

       * rate at the end of the period (as long as there are enough requests to saturate it). Similarly,
       * if the {@code RateLimiter} is left <i>unused</i> for a duration of {@code warmupPeriod}, it
       * will gradually return to its "cold" state, i.e. it will go through the same warming up process
       * as when it was first created.
       *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 04 09:45:04 GMT 2023
    - 18.2K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/graph/ValueGraph.java

       *
       * <p>If {@code node} is removed from the graph after this method is called, the {@code Set}
       * {@code view} returned by this method will be invalidated, and will throw {@code
       * IllegalStateException} if it is accessed in any way, with the following exceptions:
       *
       * <ul>
       *   <li>{@code view.equals(view)} evaluates to {@code true} (but any other `equals()` expression
       *       involving {@code view} will throw)
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jan 22 17:29:38 GMT 2024
    - 15K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/EnumBiMapTest.java

        } catch (IllegalArgumentException expected) {
        }
    
        /* Map can be empty if it's an EnumBiMap. */
        Map<Currency, Country> emptyBimap = EnumBiMap.create(Currency.class, Country.class);
        bimap = EnumBiMap.create(emptyBimap);
        assertTrue(bimap.isEmpty());
      }
    
      public void testEnumBiMapConstructor() {
        /* Test that it copies existing entries. */
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 26 16:35:21 GMT 2024
    - 11.8K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/EnumBiMapTest.java

        } catch (IllegalArgumentException expected) {
        }
    
        /* Map can be empty if it's an EnumBiMap. */
        Map<Currency, Country> emptyBimap = EnumBiMap.create(Currency.class, Country.class);
        bimap = EnumBiMap.create(emptyBimap);
        assertTrue(bimap.isEmpty());
      }
    
      public void testEnumBiMapConstructor() {
        /* Test that it copies existing entries. */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 26 16:35:21 GMT 2024
    - 11.8K bytes
    - Viewed (0)
Back to top