- Sort Score
- Num 10 results
- Language All
Results 71 - 80 of 235 for has_value (0.06 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
guava-tests/test/com/google/common/hash/BloomFilterTest.java
.isAtLeast(0); } // and some crazy values (this used to be capped to Integer.MAX_VALUE, now it can go bigger assertEquals(3327428144502L, BloomFilter.optimalNumOfBits(Integer.MAX_VALUE, Double.MIN_VALUE)); IllegalArgumentException expected = assertThrows( IllegalArgumentException.class, () -> {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 19 18:53:45 GMT 2026 - 23K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/CacheControlJvmTest.kt
fun timeDurationTruncatedToMaxValue() { val cacheControl = CacheControl .Builder() .maxAge(365 * 100, TimeUnit.DAYS) // Longer than Integer.MAX_VALUE seconds. .build() assertThat(cacheControl.maxAgeSeconds).isEqualTo(Int.MAX_VALUE) } @Test @Throws(Exception::class) fun secondsMustBeNonNegative() { val builder = CacheControl.Builder()
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Feb 03 22:17:59 GMT 2026 - 7.4K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/io/CharSequenceReaderTest.java
assertThat(readFully(reader)).isEqualTo(string); assertFullyRead(reader); // reset, skip, mark, then read the rest reader.reset(); assertEquals(5, reader.skip(5)); reader.mark(Integer.MAX_VALUE); assertThat(readFully(reader)).isEqualTo(string.substring(5)); assertFullyRead(reader); // reset to the mark and then read the rest reader.reset();
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 19:26:39 GMT 2026 - 6.7K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/MoreCollectorsTest.java
public void testToOptionalEmpty() { assertThat(Stream.empty().collect(toOptional())).isEmpty(); } public void testToOptionalSingleton() { assertThat(Stream.of(1).collect(toOptional())).hasValue(1); } public void testToOptionalNull() { Stream<@Nullable Object> stream = Stream.of((Object) null); assertThrows(NullPointerException.class, () -> stream.collect(toOptional())); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu May 15 21:47:56 GMT 2025 - 3.2K bytes - Click Count (0) -
android/guava/src/com/google/common/math/DoubleMath.java
return (long) z; } private static final double MIN_LONG_AS_DOUBLE = -0x1p63; /* * We cannot store Long.MAX_VALUE as a double without losing precision. Instead, we store * Long.MAX_VALUE + 1 == -Long.MIN_VALUE, and then offset all comparisons by 1. */ private static final double MAX_LONG_AS_DOUBLE_PLUS_ONE = 0x1p63; /**
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 19.3K bytes - Click Count (0) -
android/guava/src/com/google/common/primitives/UnsignedBytes.java
* {@code value} cast to {@code byte} otherwise */ public static byte saturatedCast(long value) { if (value > toUnsignedInt(MAX_VALUE)) { return MAX_VALUE; // -1 } if (value < 0) { return (byte) 0; } return (byte) value; } /**Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 23 16:38:16 GMT 2026 - 21K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/helper/WebFsIndexHelperTest.java
assertEquals(maxAccessCount, webFsIndexHelper.maxAccessCount); } @Test public void test_setMaxAccessCount_withMaxValue() { webFsIndexHelper.setMaxAccessCount(Long.MAX_VALUE); assertEquals(Long.MAX_VALUE, webFsIndexHelper.maxAccessCount); } @Test public void test_setMaxAccessCount_withZero() { webFsIndexHelper.setMaxAccessCount(0L);
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Wed Jan 14 14:29:07 GMT 2026 - 15.6K bytes - Click Count (0) -
guava/src/com/google/common/collect/AbstractMapBasedMultiset.java
/* * Cache the size for efficiency. Using a long lets us avoid the need for * overflow checking and ensures that size() will function correctly even if * the multiset had once been larger than Integer.MAX_VALUE. */ private transient long size; /** Standard constructor. */ protected AbstractMapBasedMultiset(Map<E, Count> backingMap) { checkArgument(backingMap.isEmpty()); this.backingMap = backingMap;
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Aug 11 19:31:30 GMT 2025 - 10.2K bytes - Click Count (0) -
guava-tests/test/com/google/common/primitives/ByteArrayAsListTest.java
} } public static final class BytesAsListHeadSubListGenerator extends TestByteListGenerator { @Override protected List<Byte> create(Byte[] elements) { Byte[] suffix = {Byte.MIN_VALUE, Byte.MAX_VALUE}; Byte[] all = concat(elements, suffix); return asList(all).subList(0, elements.length); } } public static final class BytesAsListTailSubListGenerator extends TestByteListGenerator {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 5.6K bytes - Click Count (0) -
guava-tests/test/com/google/common/primitives/LongArrayAsListTest.java
} } public static final class LongsAsListHeadSubListGenerator extends TestLongListGenerator { @Override protected List<Long> create(Long[] elements) { Long[] suffix = {Long.MIN_VALUE, Long.MAX_VALUE}; Long[] all = concat(elements, suffix); return asList(all).subList(0, elements.length); } } public static final class LongsAsListTailSubListGenerator extends TestLongListGenerator {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 5.5K bytes - Click Count (0)