Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 141 for leal (0.14 sec)

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

            assertThat(UnsignedInts.parseUnsignedInt(Long.toString(a, radix), radix))
                .isEqualTo((int) a);
          }
        }
      }
    
      public void testParseIntWithRadixLimits() {
        // loops through all legal radix values.
        for (int radix = Character.MIN_RADIX; radix <= Character.MAX_RADIX; radix++) {
          // tests can successfully parse a number string with this radix.
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 06 16:10:08 GMT 2024
    - 12.7K bytes
    - Viewed (1)
  2. android/guava/src/com/google/common/util/concurrent/Service.java

     * </ul>
     *
     * <p>There are deviations from this if there are failures or if {@link Service#stopAsync} is called
     * before the {@link Service} reaches the {@linkplain State#RUNNING RUNNING} state. The set of legal
     * transitions form a <a href="http://en.wikipedia.org/wiki/Directed_acyclic_graph">DAG</a>,
     * therefore every method of the listener will be called at most once. N.B. The {@link State#FAILED}
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 04 09:45:04 GMT 2023
    - 10.7K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/Lists.java

       *
       * <p><b>Note:</b> serializing the returned list is implemented by serializing {@code fromList},
       * its contents, and {@code function} -- <i>not</i> by serializing the transformed values. This
       * can lead to surprising behavior, so serializing the returned list is <b>not recommended</b>.
       * Instead, copy the list using {@link ImmutableList#copyOf(Collection)} (for example), then
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 29 16:48:36 GMT 2024
    - 41.5K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/hash/HashFunction.java

     *       rate when using completely <i>random</i> sample input. The true test of a hash function is
     *       how it performs on representative real-world data, which tends to contain many hidden
     *       patterns and clumps. The goal of a good hash function is to stamp these patterns out as
     *       thoroughly as possible.
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue May 25 18:22:59 GMT 2021
    - 10.9K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/base/Strings.java

       * <p>In certain cases, such as outputting debugging information or constructing a message to be
       * used for another unchecked exception, an exception during string formatting would serve little
       * purpose except to supplant the real information you were trying to provide. These are the cases
       * this method is made for; it instead generates a best-effort string with all supplied argument
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Apr 09 00:49:18 GMT 2021
    - 12.3K bytes
    - Viewed (0)
  6. guava/src/com/google/common/base/Optional.java

       *
       * <p>Note about generics: The signature {@code public T or(T defaultValue)} is overly
       * restrictive. However, the ideal signature, {@code public <S super T> S or(S)}, is not legal
       * Java. As a result, some sensible operations involving subtypes are compile errors:
       *
       * <pre>{@code
       * Optional<Integer> optionalInt = getSomeOptionalInt();
       * Number value = optionalInt.or(0.5); // error
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 14.6K bytes
    - Viewed (0)
  7. guava/src/com/google/common/base/Verify.java

     * except that they are always enabled. These methods should be used instead of Java assertions
     * whenever there is a chance the check may fail "in real life". Example:
     *
     * <pre>{@code
     * Bill bill = remoteService.getLastUnpaidBill();
     *
     * // In case bug 12345 happens again we'd rather just die
     * Verify.verify(bill.status() == Status.UNPAID,
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon May 17 14:07:47 GMT 2021
    - 18.5K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/math/IntMathTest.java

            // The BigInteger implementation is tested separately, use it as the reference.
            // Promote the int value (rather than using intValue() on the expected value) to avoid
            // any risk of truncation which could lead to a false positive.
            assertEquals(BigIntegerMath.sqrt(valueOf(x), mode), valueOf(IntMath.sqrt(x, mode)));
          }
        }
      }
    
      /* Relies on the correctness of sqrt(int, FLOOR). */
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 24.5K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/primitives/DoublesTest.java

        assertThat(newArray).isEqualTo(new double[] {(double) 0, (double) 1, (double) 2});
        newArray[1] = (double) 5;
        assertThat((double) list.get(1)).isEqualTo((double) 1);
      }
    
      // This test stems from a real bug found by andrewk
      public void testAsList_subList_toArray_roundTrip() {
        double[] array = {(double) 0, (double) 1, (double) 2, (double) 3};
        List<Double> list = Doubles.asList(array);
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 29 15:43:06 GMT 2024
    - 31.5K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/primitives/LongsTest.java

        assertThat(newArray).isEqualTo(new long[] {(long) 0, (long) 1, (long) 2});
        newArray[1] = (long) 5;
        assertThat((long) list.get(1)).isEqualTo((long) 1);
      }
    
      // This test stems from a real bug found by andrewk
      public void testAsList_subList_toArray_roundTrip() {
        long[] array = {(long) 0, (long) 1, (long) 2, (long) 3};
        List<Long> list = Longs.asList(array);
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 30K bytes
    - Viewed (0)
Back to top