Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 120 for Valid (0.15 sec)

  1. guava-tests/test/com/google/common/hash/AbstractByteHasherTest.java

        Random random = new Random();
        for (int i = 0; i < 100; i++) {
          byte[] bytes = new byte[64];
          random.nextBytes(bytes);
          String s = new String(bytes, UTF_16LE); // so all random strings are valid
          assertEquals(
              new TestHasher().putUnencodedChars(s).hash(),
              new TestHasher().putBytes(s.getBytes(UTF_16LE)).hash());
          assertEquals(
              new TestHasher().putUnencodedChars(s).hash(),
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 3.8K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/google/MultisetSetCountConditionallyTester.java

            getMultiset().setCount(e0(), 1, 5));
        expectContents(nCopies(3, e0()));
      }
    
      /*
       * TODO: test that unmodifiable multisets either throw UOE or return false
       * when both are valid options. Currently we test the UOE cases and the
       * return-false cases but not their intersection
       */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 21 15:08:35 GMT 2022
    - 3.9K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/primitives/UnsignedIntsTest.java

            fail();
          } catch (NumberFormatException expected) {
          }
        }
      }
    
      public void testParseIntThrowsExceptionForInvalidRadix() {
        // Valid radix values are Character.MIN_RADIX to Character.MAX_RADIX,
        // inclusive.
        //
        // Note: According to the spec, a NumberFormatException is thrown for a number that is not
    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)
  4. guava/src/com/google/common/collect/ArrayTable.java

      }
    
      /**
       * Associates the value {@code null} with the specified keys, assuming both keys are valid. If
       * either key is null or isn't among the keys provided during construction, this method has no
       * effect.
       *
       * <p>This method is equivalent to {@code put(rowKey, columnKey, null)} when both provided keys
       * are valid.
       *
       * @param rowKey row key of mapping to be erased
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 26.9K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/primitives/UnsignedBytes.java

        return Integer.toString(toInt(x), radix);
      }
    
      /**
       * Returns the unsigned {@code byte} value represented by the given decimal string.
       *
       * @throws NumberFormatException if the string does not contain a valid unsigned {@code byte}
       *     value
       * @throws NullPointerException if {@code string} is null (in contrast to {@link
       *     Byte#parseByte(String)})
       * @since 13.0
       */
      @CanIgnoreReturnValue
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 18.3K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/util/concurrent/Striped.java

       *
       * @param key an arbitrary, non-null key
       * @return the stripe that the passed key corresponds to
       */
      public abstract L get(Object key);
    
      /**
       * Returns the stripe at the specified index. Valid indexes are 0, inclusively, to {@code size()},
       * exclusively.
       *
       * @param index the index of the stripe to return; must be in {@code [0...size())}
       * @return the stripe at the specified index
       */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 10 20:55:18 GMT 2023
    - 20.3K bytes
    - Viewed (1)
  7. guava-tests/test/com/google/common/base/Utf8Test.java

       * prohibitively expensive to test for automated runs. This method tests specific four-byte cases.
       */
      public void testIsWellFormed_4BytesSamples() {
        // Valid 4 byte.
        assertWellFormed(0xF0, 0xA4, 0xAD, 0xA2);
        // Bad trailing bytes
        assertNotWellFormed(0xF0, 0xA4, 0xAD, 0x7F);
        assertNotWellFormed(0xF0, 0xA4, 0xAD, 0xC0);
        // Special cases for byte2
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 12.7K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/base/Strings.java

            || validSurrogatePairAt(b, b.length() - s - 1)) {
          s--;
        }
        return a.subSequence(a.length() - s, a.length()).toString();
      }
    
      /**
       * True when a valid surrogate pair starts at the given {@code index} in the given {@code string}.
       * Out-of-range indexes return false.
       */
      @VisibleForTesting
      static boolean validSurrogatePairAt(CharSequence string, int index) {
    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)
  9. android/guava-testlib/src/com/google/common/collect/testing/google/MultisetSetCountConditionallyTester.java

            getMultiset().setCount(e0(), 1, 5));
        expectContents(nCopies(3, e0()));
      }
    
      /*
       * TODO: test that unmodifiable multisets either throw UOE or return false
       * when both are valid options. Currently we test the UOE cases and the
       * return-false cases but not their intersection
       */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 21 15:08:35 GMT 2022
    - 3.9K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/graph/Traverser.java

       *       of nodes that have been seen but not yet visited, that is, the "horizon").
       * </ul>
       *
       * <p><b>Examples</b> (all edges are directed facing downwards)
       *
       * <p>The graph below would be valid input with start nodes of {@code a, f, c}. However, if {@code
       * b} were <i>also</i> a start node, then there would be multiple paths to reach {@code e} and
       * {@code h}.
       *
       * <pre>{@code
       *    a     b      c
    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)
Back to top