- Sort Score
- Result 10 results
- Languages All
Results 101 - 110 of 271 for has_value (0.11 sec)
-
okhttp/src/main/kotlin/okhttp3/internal/-ResponseBodyCommon.kt
internal inline fun <T : Any> ResponseBody.commonConsumeSource( consumer: (BufferedSource) -> T, sizeMapper: (T) -> Int, ): T { val contentLength = contentLength() if (contentLength > Int.MAX_VALUE) { throw IOException("Cannot buffer entire body for content length: $contentLength") } val bytes = source().use(consumer) val size = sizeMapper(bytes)
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 2.3K bytes - Viewed (0) -
okhttp-tls/src/test/java/okhttp3/tls/internal/der/DerTest.kt
} @Test fun `max long`() { val bytes = "02087fffffffffffffff".decodeHex() assertThat(Adapters.INTEGER_AS_LONG.fromDer(bytes)).isEqualTo(Long.MAX_VALUE) assertThat(Adapters.INTEGER_AS_LONG.toDer(Long.MAX_VALUE)).isEqualTo(bytes) } @Test fun `min long`() { val bytes = "02088000000000000000".decodeHex() assertThat(Adapters.INTEGER_AS_LONG.fromDer(bytes)).isEqualTo(Long.MIN_VALUE)
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 31.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/math/DoubleMathTest.java
public class DoubleMathTest extends TestCase { private static final BigDecimal MAX_INT_AS_BIG_DECIMAL = BigDecimal.valueOf(Integer.MAX_VALUE); private static final BigDecimal MIN_INT_AS_BIG_DECIMAL = BigDecimal.valueOf(Integer.MIN_VALUE); private static final BigDecimal MAX_LONG_AS_BIG_DECIMAL = BigDecimal.valueOf(Long.MAX_VALUE); private static final BigDecimal MIN_LONG_AS_BIG_DECIMAL = BigDecimal.valueOf(Long.MIN_VALUE);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 15:00:32 UTC 2024 - 27.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/primitives/DoublesTest.java
LEAST, -Double.MAX_VALUE, -1.0, -0.5, -0.1, -0.0, 0.0, 0.1, 0.5, 1.0, Double.MAX_VALUE, GREATEST, Double.MIN_NORMAL, -Double.MIN_NORMAL, Double.MIN_VALUE, -Double.MIN_VALUE, Integer.MIN_VALUE, Integer.MAX_VALUE, Long.MIN_VALUE, Long.MAX_VALUE
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 02:56:12 UTC 2024 - 32.2K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/validation/CustomSizeValidator.java
import jakarta.validation.ConstraintValidatorContext; public class CustomSizeValidator implements ConstraintValidator<CustomSize, CharSequence> { private int min = 0; private int max = Integer.MAX_VALUE; private String message; @Override public void initialize(final CustomSize constraintAnnotation) { final FessConfig fessConfig = ComponentUtil.getFessConfig();
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:53:18 UTC 2024 - 2.8K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Queues.java
Iterables.addAll(queue, elements); return queue; } // LinkedBlockingDeque /** * Creates an empty {@code LinkedBlockingDeque} with a capacity of {@link Integer#MAX_VALUE}. * * @since 12.0 */ @J2ktIncompatible @GwtIncompatible // LinkedBlockingDeque public static <E> LinkedBlockingDeque<E> newLinkedBlockingDeque() { return new LinkedBlockingDeque<>();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 26 14:11:14 UTC 2024 - 18.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/base/CharMatcherTest.java
} for (int c = 0; c <= Character.MAX_VALUE; c++) { assertFalse(positive.contains(Character.valueOf((char) c)) ^ m.matches((char) c)); } } static char[] randomChars(Random rand, int size) { Set<Character> chars = new HashSet<>(size); for (int i = 0; i < size; i++) { char c; do { c = (char) rand.nextInt(Character.MAX_VALUE - Character.MIN_VALUE + 1);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Feb 21 18:32:41 UTC 2024 - 30.1K bytes - Viewed (0) -
android/guava/src/com/google/common/primitives/ImmutableLongArray.java
* * <p>The array {@code rest} must not be longer than {@code Integer.MAX_VALUE - 1}. */ // Use (first, rest) so that `of(someLongArray)` won't compile (they should use copyOf), which is // okay since we have to copy the just-created array anyway. public static ImmutableLongArray of(long first, long... rest) { checkArgument( rest.length <= Integer.MAX_VALUE - 1, "the total number of elements must fit in an int");
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 25 18:05:56 UTC 2024 - 22.3K bytes - Viewed (0) -
guava/src/com/google/common/primitives/ImmutableIntArray.java
* * <p>The array {@code rest} must not be longer than {@code Integer.MAX_VALUE - 1}. */ // Use (first, rest) so that `of(someIntArray)` won't compile (they should use copyOf), which is // okay since we have to copy the just-created array anyway. public static ImmutableIntArray of(int first, int... rest) { checkArgument( rest.length <= Integer.MAX_VALUE - 1, "the total number of elements must fit in an int");
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 25 18:05:56 UTC 2024 - 21.4K bytes - Viewed (0) -
android/guava/src/com/google/common/escape/ArrayBasedUnicodeEscaper.java
if (safeMax < safeMin) { // If the safe range is empty, set the range limits to opposite extremes // to ensure the first test of either value will fail. safeMax = -1; safeMin = Integer.MAX_VALUE; } this.safeMin = safeMin; this.safeMax = safeMax; // This is a bit of a hack but lets us do quicker per-character checks in
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:26:48 UTC 2024 - 8.6K bytes - Viewed (0)