Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for fromString (0.18 sec)

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

        assertThrows(IllegalArgumentException.class, () -> HashCode.fromString("7"));
        HashCode unused = HashCode.fromString("7f");
      }
    
      public void testFromStringFailsWithOddLengthInput() {
        assertThrows(IllegalArgumentException.class, () -> HashCode.fromString("7f8"));
      }
    
      public void testIntWriteBytesTo() {
        byte[] dest = new byte[4];
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 13.1K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/hash/HashCodeTest.java

        assertThrows(IllegalArgumentException.class, () -> HashCode.fromString("7"));
        HashCode unused = HashCode.fromString("7f");
      }
    
      public void testFromStringFailsWithOddLengthInput() {
        assertThrows(IllegalArgumentException.class, () -> HashCode.fromString("7f8"));
      }
    
      public void testIntWriteBytesTo() {
        byte[] dest = new byte[4];
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 13.1K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/net/HostAndPort.java

    import java.io.Serializable;
    import javax.annotation.CheckForNull;
    
    /**
     * An immutable representation of a host and port.
     *
     * <p>Example usage:
     *
     * <pre>
     * HostAndPort hp = HostAndPort.fromString("[2001:db8::1]")
     *     .withDefaultPort(80)
     *     .requireBracketsForIPv6();
     * hp.getHost();   // returns "2001:db8::1"
     * hp.getPort();   // returns 80
     * hp.toString();  // returns "[2001:db8::1]:80"
     * </pre>
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Aug 22 20:55:57 GMT 2023
    - 11.3K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/hash/MacHashFunctionTest.java

        checkHmac(expected, Hashing.hmacMd5(key), data);
      }
    
      private static void checkHmac(String expected, HashFunction hashFunc, byte[] data) {
        assertEquals(HashCode.fromString(expected), hashFunc.hashBytes(data));
      }
    
      private static byte[] fillByteArray(int size, int toFillWith) {
        byte[] array = new byte[size];
        Arrays.fill(array, (byte) toFillWith);
        return array;
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 13.8K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/io/TempFileCreator.java

          if (views.contains("posix")) {
            filePermissions = () -> asFileAttribute(PosixFilePermissions.fromString("rw-------"));
            directoryPermissions = () -> asFileAttribute(PosixFilePermissions.fromString("rwx------"));
          } else if (views.contains("acl")) {
            filePermissions = directoryPermissions = userPermissions();
          } else {
            filePermissions =
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Oct 06 17:11:11 GMT 2023
    - 12.5K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/cache/CacheBuilderSpecTest.java

        assertSame(value, cache.getUnchecked(key));
        assertEquals(0, cache.size());
        assertFalse(cache.asMap().containsKey(key));
      }
    
      public void testCacheBuilderFrom_string() {
        CacheBuilder<?, ?> fromString =
            CacheBuilder.from(
                "initialCapacity=10,maximumSize=20,concurrencyLevel=30,"
                    + "weakKeys,weakValues,expireAfterAccess=10m");
        CacheBuilder<?, ?> expected =
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 19.2K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/cache/CacheBuilderSpecTest.java

        assertSame(value, cache.getUnchecked(key));
        assertEquals(0, cache.size());
        assertFalse(cache.asMap().containsKey(key));
      }
    
      public void testCacheBuilderFrom_string() {
        CacheBuilder<?, ?> fromString =
            CacheBuilder.from(
                "initialCapacity=10,maximumSize=20,concurrencyLevel=30,"
                    + "weakKeys,weakValues,expireAfterAccess=10m");
        CacheBuilder<?, ?> expected =
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 19.2K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/hash/MacHashFunctionTest.java

        checkHmac(expected, Hashing.hmacMd5(key), data);
      }
    
      private static void checkHmac(String expected, HashFunction hashFunc, byte[] data) {
        assertEquals(HashCode.fromString(expected), hashFunc.hashBytes(data));
      }
    
      private static byte[] fillByteArray(int size, int toFillWith) {
        byte[] array = new byte[size];
        Arrays.fill(array, (byte) toFillWith);
        return array;
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 13.8K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/primitives/UnsignedInts.java

       * @since 13.0
       */
      @CanIgnoreReturnValue
      public static int decode(String stringValue) {
        ParseRequest request = ParseRequest.fromString(stringValue);
    
        try {
          return parseUnsignedInt(request.rawValue, request.radix);
        } catch (NumberFormatException e) {
          NumberFormatException decodeException =
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 13.4K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/io/Files.java

       *     {@link java.nio.file.Path#toFile() toFile()} if needed. To restrict permissions as this
       *     method does, pass {@code
       *     PosixFilePermissions.asFileAttribute(PosixFilePermissions.fromString("rwx------"))} to your
       *     call to {@code createTempDirectory}.
       */
      @Beta
      @Deprecated
      @J2ObjCIncompatible
      public static File createTempDir() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 33.1K bytes
    - Viewed (0)
Back to top