Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 22 for density (0.16 sec)

  1. android/guava-tests/test/com/google/common/math/MathBenchmarking.java

        BigInteger result = randomPositiveBigInteger(numBits);
        return RANDOM_SOURCE.nextBoolean() ? result : result.negate();
      }
    
      /**
       * Chooses a number in (-2^numBits, 2^numBits) at random, with density concentrated in numbers of
       * lower magnitude.
       */
      static BigInteger randomBigInteger(int numBits) {
        while (true) {
          if (RANDOM_SOURCE.nextBoolean()) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.1K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/math/MathBenchmarking.java

        BigInteger result = randomPositiveBigInteger(numBits);
        return RANDOM_SOURCE.nextBoolean() ? result : result.negate();
      }
    
      /**
       * Chooses a number in (-2^numBits, 2^numBits) at random, with density concentrated in numbers of
       * lower magnitude.
       */
      static BigInteger randomBigInteger(int numBits) {
        while (true) {
          if (RANDOM_SOURCE.nextBoolean()) {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.1K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/base/EquivalenceTest.java

        new EqualsTester()
            .addEqualityGroup(
                Equivalence.identity().onResultOf(Functions.toStringFunction()),
                Equivalence.identity().onResultOf(Functions.toStringFunction()))
            .addEqualityGroup(Equivalence.equals().onResultOf(Functions.toStringFunction()))
            .addEqualityGroup(Equivalence.identity().onResultOf(Functions.identity()))
            .testEquals();
      }
    
      public void testEquivalentTo() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 6.5K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/base/ConverterTest.java

        assertSame(stringIdentityConverter, stringIdentityConverter.reverse());
        assertSame(STR_TO_LONG, stringIdentityConverter.andThen(STR_TO_LONG));
    
        assertSame(STR_VAL, stringIdentityConverter.convert(STR_VAL));
        assertSame(STR_VAL, stringIdentityConverter.reverse().convert(STR_VAL));
    
        assertEquals("Converter.identity()", stringIdentityConverter.toString());
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Oct 06 17:02:33 GMT 2023
    - 7.8K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/testing/CollectorTester.java

          A finalAccum = scheme.result(collector, inputs);
          if (collector.characteristics().contains(Collector.Characteristics.IDENTITY_FINISH)) {
            @SuppressWarnings("unchecked") // `R` and `A` match for an `IDENTITY_FINISH`
            R result = (R) finalAccum;
            assertEquivalent(expectedResult, result);
          }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 6.5K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/MapsTransformValuesTest.java

    public class MapsTransformValuesTest extends AbstractMapsTransformValuesTest {
      @Override
      protected Map<String, String> makeEmptyMap() {
        return Maps.transformValues(Maps.<String, String>newHashMap(), Functions.<String>identity());
      }
    
      @Override
      protected Map<String, String> makePopulatedMap() {
        Map<String, Integer> underlying = Maps.newHashMap();
        underlying.put("a", 1);
        underlying.put("b", 2);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 1.4K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/MapsSortedTransformValuesTest.java

    public class MapsSortedTransformValuesTest extends AbstractMapsTransformValuesTest {
      @Override
      protected SortedMap<String, String> makeEmptyMap() {
        return Maps.transformValues(Maps.<String, String>newTreeMap(), Functions.<String>identity());
      }
    
      @Override
      protected SortedMap<String, String> makePopulatedMap() {
        SortedMap<String, Integer> underlying = Maps.newTreeMap();
        underlying.put("a", 1);
        underlying.put("b", 2);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 1.5K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/MapsSortedTransformValuesTest.java

    public class MapsSortedTransformValuesTest extends AbstractMapsTransformValuesTest {
      @Override
      protected SortedMap<String, String> makeEmptyMap() {
        return Maps.transformValues(Maps.<String, String>newTreeMap(), Functions.<String>identity());
      }
    
      @Override
      protected SortedMap<String, String> makePopulatedMap() {
        SortedMap<String, Integer> underlying = Maps.newTreeMap();
        underlying.put("a", 1);
        underlying.put("b", 2);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 1.5K bytes
    - Viewed (0)
  9. guava/src/com/google/common/base/Objects.java

       * Arrays#hashCode(Object[])}. Note that array arguments to this method, with the exception of a
       * single Object array, do not get any special handling; their hash codes are based on identity
       * and not contents.
       *
       * <p>This is useful for implementing {@link Object#hashCode()}. For example, in an object that
       * has three properties, {@code x}, {@code y}, and {@code z}, one could write:
       *
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 2.9K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/html/HtmlEscapers.java

       * other Unicode encodings can).
       *
       * <p><b>Note:</b> This escaper only performs minimal escaping to make content structurally
       * compatible with HTML. Specifically, it does not perform entity replacement (symbolic or
       * numeric), so it does not replace non-ASCII code points with character references. This escaper
       * escapes only the following five ASCII characters: {@code '"&<>}.
       */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 14 22:08:54 GMT 2021
    - 3K bytes
    - Viewed (0)
Back to top