Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 24 for Villegas (0.19 sec)

  1. guava-tests/test/com/google/common/io/CountingOutputStreamTest.java

        assertEquals(written, counter.getCount());
    
        counter.write(data, 2, 5);
        written += 5;
        assertEquals(written, out.size());
        assertEquals(written, counter.getCount());
    
        // Test that illegal arguments do not affect count
        assertThrows(IndexOutOfBoundsException.class, () -> counter.write(data, 0, data.length + 1));
        assertEquals(written, out.size());
        assertEquals(written, counter.getCount());
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 1.9K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/io/CountingOutputStreamTest.java

        assertEquals(written, counter.getCount());
    
        counter.write(data, 2, 5);
        written += 5;
        assertEquals(written, out.size());
        assertEquals(written, counter.getCount());
    
        // Test that illegal arguments do not affect count
        assertThrows(IndexOutOfBoundsException.class, () -> counter.write(data, 0, data.length + 1));
        assertEquals(written, out.size());
        assertEquals(written, counter.getCount());
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 1.9K bytes
    - Viewed (0)
  3. guava-tests/benchmark/com/google/common/hash/HashStringBenchmark.java

        strings = new String[SAMPLES];
        for (int i = 0; i < SAMPLES; i++) {
          StringBuilder sb = new StringBuilder();
          for (int j = 0; j < charCount; j++) {
            int codePoint;
            // discard illegal surrogate "codepoints"
            do {
              codePoint = rnd.nextInt(maxCodePoint.value);
            } while (Character.isSurrogate((char) codePoint));
            sb.appendCodePoint(codePoint);
          }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 5.3K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/cache/CacheBuilderSpec.java

     * request expiration in milliseconds, microseconds, or nanoseconds.)
     *
     * <p>Whitespace before and after commas and equal signs is ignored. Keys may not be repeated; it is
     * also illegal to use the following pairs of keys in a single value:
     *
     * <ul>
     *   <li>{@code maximumSize} and {@code maximumWeight}
     *   <li>{@code softValues} and {@code weakValues}
     * </ul>
     *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Aug 22 14:27:44 GMT 2022
    - 18.1K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/primitives/UnsignedLongs.java

        if (string.length() == 0) {
          throw new NumberFormatException("empty string");
        }
        if (radix < Character.MIN_RADIX || radix > Character.MAX_RADIX) {
          throw new NumberFormatException("illegal radix: " + radix);
        }
    
        int maxSafePos = ParseOverflowDetection.maxSafeDigits[radix] - 1;
        long value = 0;
        for (int pos = 0; pos < string.length(); pos++) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 17.6K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/hash/HashTestUtils.java

        }
      }
    
      /**
       * This verifies that putUnencodedChars(String) and hashUnencodedChars(String) are equivalent,
       * even for funny strings composed by (possibly unmatched, and mostly illegal) surrogate
       * characters. (But doesn't test that they do the right thing - just their consistency).
       */
      private static void assertHashStringWithSurrogatesEquivalence(
          HashFunction hashFunction, Random random) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 25.3K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/net/MediaType.java

       *
       * @throws IllegalStateException if multiple charset values have been set for this media type
       * @throws IllegalCharsetNameException if a charset value is present, but illegal
       * @throws UnsupportedCharsetException if a charset value is present, but no support is available
       *     in this instance of the Java virtual machine
       */
      public Optional<Charset> charset() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Aug 07 16:17:10 GMT 2023
    - 46.2K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/base/Utf8.java

          } while ((byte1 = bytes[index++]) >= 0);
    
          if (byte1 < (byte) 0xE0) {
            // Two-byte form.
            if (index == end) {
              return false;
            }
            // Simultaneously check for illegal trailing-byte in leading position
            // and overlong 2-byte form.
            if (byte1 < (byte) 0xC2 || bytes[index++] > (byte) 0xBF) {
              return false;
            }
          } else if (byte1 < (byte) 0xF0) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 10 14:11:51 GMT 2023
    - 7K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/primitives/UnsignedIntsTest.java

        // parseable, but the spec doesn't seem to say which exception is thrown for an invalid radix.
        // In contrast to the JVM, Kotlin native throws an Illegal argument exception in this case
        // (which seems to make more sense).
        try {
          UnsignedInts.parseUnsignedInt("0", Character.MIN_RADIX - 1);
          fail();
        } catch (NumberFormatException expected) {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 06 16:10:08 GMT 2024
    - 12.7K bytes
    - Viewed (0)
  10. guava/src/com/google/common/cache/CacheBuilderSpec.java

     * request expiration in milliseconds, microseconds, or nanoseconds.)
     *
     * <p>Whitespace before and after commas and equal signs is ignored. Keys may not be repeated; it is
     * also illegal to use the following pairs of keys in a single value:
     *
     * <ul>
     *   <li>{@code maximumSize} and {@code maximumWeight}
     *   <li>{@code softValues} and {@code weakValues}
     * </ul>
     *
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Aug 22 14:27:44 GMT 2022
    - 18.1K bytes
    - Viewed (0)
Back to top