- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 27 for parser (0.15 sec)
-
android/guava/src/com/google/common/primitives/UnsignedBytes.java
public static byte parseUnsignedByte(String string, int radix) { int parse = Integer.parseInt(checkNotNull(string), radix); // We need to throw a NumberFormatException, so we have to duplicate checkedCast. =( if (parse >> Byte.SIZE == 0) { return (byte) parse; } else { throw new NumberFormatException("out of range: " + parse); } } /**
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) -
android/guava/src/com/google/common/primitives/Floats.java
} float[] toFloatArray() { return Arrays.copyOfRange(array, start, end); } private static final long serialVersionUID = 0; } /** * Parses the specified string as a single-precision floating point value. The ASCII character * {@code '-'} (<code>'\u002D'</code>) is recognized as the minus sign. *
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Thu Feb 29 15:43:06 GMT 2024 - 25.2K bytes - Viewed (0) -
android/guava/src/com/google/common/net/InetAddresses.java
return InetAddress.getByAddress(reversed); } /** * Returns a new InetAddress that is one less than the passed in address. This method works for * both IPv4 and IPv6 addresses. * * @param address the InetAddress to decrement * @return a new InetAddress that is one less than the passed in address * @throws IllegalArgumentException if InetAddress is at the beginning of its range * @since 18.0 */
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Fri Dec 15 19:31:54 GMT 2023 - 44K bytes - Viewed (1) -
android/guava/src/com/google/common/primitives/UnsignedInts.java
* * <p><b>Java 8+ users:</b> use {@link Integer#parseUnsignedInt(String, int)} instead. * * @param string the string containing the unsigned integer representation to be parsed. * @param radix the radix to use while parsing {@code s}; must be between {@link * Character#MIN_RADIX} and {@link Character#MAX_RADIX}.
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) -
android/guava/src/com/google/common/primitives/Ints.java
* a length of zero or cannot be parsed as an integer value * @throws NullPointerException if {@code string} is {@code null} * @since 11.0 */ @CheckForNull public static Integer tryParse(String string) { return tryParse(string, 10); } /** * Parses the specified string as a signed integer value using the specified radix. The ASCII
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Thu Feb 15 16:12:13 GMT 2024 - 29.7K bytes - Viewed (0) -
android/guava/src/com/google/common/primitives/Doubles.java
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Thu Feb 29 15:43:06 GMT 2024 - 27.1K bytes - Viewed (0) -
guava/src/com/google/common/cache/CacheBuilder.java
* @since 12.0 */ @GwtIncompatible // To be supported public static CacheBuilder<Object, Object> from(String spec) { return from(CacheBuilderSpec.parse(spec)); } /** * Enables lenient parsing. Useful for tests and spec parsing. * * @return this {@code CacheBuilder} instance (for chaining) */ @GwtIncompatible // To be supported
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Thu Feb 15 16:12:13 GMT 2024 - 51.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/primitives/UnsignedLongsTest.java
BigInteger max = BigInteger.ZERO.setBit(64).subtract(ONE); // 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. String maxAsString = max.toString(radix); assertThat(UnsignedLongs.parseUnsignedLong(maxAsString, radix)).isEqualTo(max.longValue()); try {
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Fri Feb 09 15:36:17 GMT 2024 - 13.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/primitives/IntsTest.java
assertWithMessage("Mixed hex case").that((int) Ints.tryParse("ffFF", 16)).isEqualTo(65535); } /** * Encodes an integer as a string with given radix, then uses {@link Ints#tryParse(String, int)} * to parse the result. Asserts the result is the same as what we started with. */ private static void radixEncodeParseAndAssertEquals(Integer value, int radix) { assertWithMessage("Radix: " + radix)
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Tue Feb 06 16:10:08 GMT 2024 - 28.4K bytes - Viewed (0) -
android/guava/src/com/google/common/cache/CacheBuilder.java
* @since 12.0 */ @GwtIncompatible // To be supported public static CacheBuilder<Object, Object> from(String spec) { return from(CacheBuilderSpec.parse(spec)); } /** * Enables lenient parsing. Useful for tests and spec parsing. * * @return this {@code CacheBuilder} instance (for chaining) */ @GwtIncompatible // To be supported
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Feb 15 16:12:13 GMT 2024 - 44.8K bytes - Viewed (0)