- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 19 for fromString (0.09 sec)
-
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];
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 21 14:28:19 UTC 2024 - 13.1K bytes - Viewed (0) -
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];
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 21 14:28:19 UTC 2024 - 13.1K bytes - Viewed (0) -
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>
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Jul 22 22:02:22 UTC 2024 - 11.3K bytes - Viewed (0) -
internal/s3select/sql/funceval.go
return nil, errIncorrectSQLFunctionArgumentType(err) } return FromString(strings.ToLower(s)), nil } func upperCase(v *Value) (*Value, error) { inferTypeAsString(v) s, ok := v.ToString() if !ok { err := fmt.Errorf("%s expects a string argument", sqlFnUpper) return nil, errIncorrectSQLFunctionArgumentType(err) } return FromString(strings.ToUpper(s)), nil }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Jun 01 21:59:40 UTC 2021 - 13.2K bytes - Viewed (0) -
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 =
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 19:07:49 UTC 2024 - 19.1K bytes - Viewed (0) -
internal/s3select/sql/value_test.go
return FromInt(0x1337) }, func() *Value { t, err := time.Parse(time.RFC3339, "2006-01-02T15:04:05Z") if err != nil { panic(err) } return FromTimestamp(t) }, func() *Value { return FromString("string contents") }, } // altValueBuilders contains one constructor for each value type. // Values are zero values and should NOT match the values in valueBuilders, except Null type.
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Mar 06 16:56:10 UTC 2023 - 12.5K bytes - Viewed (0) -
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 =
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 06 17:11:11 UTC 2023 - 12.5K bytes - Viewed (0) -
android/guava/src/com/google/common/hash/HashCode.java
* lenient {@code base 16} decoding, please use {@link com.google.common.io.BaseEncoding#decode} * (and pass the result to {@link #fromBytes}). * * @since 15.0 */ public static HashCode fromString(String string) { checkArgument( string.length() >= 2, "input string (%s) must have at least 2 characters", string); checkArgument( string.length() % 2 == 0,
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 19:54:59 UTC 2024 - 12.6K bytes - Viewed (0) -
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 =
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 19:07:49 UTC 2024 - 19.1K bytes - Viewed (0) -
internal/s3select/sql/evaluate.go
} } // jsonToValue will convert the json value to an internal value. func jsonToValue(result interface{}) (*Value, error) { switch rval := result.(type) { case string: return FromString(rval), nil case float64: return FromFloat(rval), nil case int64: return FromInt(rval), nil case uint64: if rval <= math.MaxInt64 { return FromInt(int64(rval)), nil }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Sep 23 19:35:41 UTC 2024 - 12K bytes - Viewed (0)