- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 49 for Spec (0.13 sec)
-
guava-tests/test/com/google/common/cache/CacheBuilderSpecTest.java
} public void testParse_initialCapacity() { CacheBuilderSpec spec = parse("initialCapacity=10"); assertEquals(10, spec.initialCapacity.intValue()); assertNull(spec.maximumSize); assertNull(spec.maximumWeight); assertNull(spec.concurrencyLevel); assertNull(spec.keyStrength); assertNull(spec.valueStrength); assertNull(spec.writeExpirationTimeUnit);
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) -
guava-tests/test/com/google/common/primitives/UnsignedIntsTest.java
// Valid radix values are Character.MIN_RADIX to Character.MAX_RADIX, // inclusive. // // Note: According to the spec, a NumberFormatException is thrown for a number that is not // parseable, but the spec doesn't seem to say which exception is thrown for an invalid radix. // In contrast to the JVM, Kotlin native throws an Illegal argument exception in this case
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Tue Feb 06 16:10:08 GMT 2024 - 12.7K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/MapEntrySetTester.java
} catch (ClassCastException acceptable) { // allowed by the spec } } public void testContainsEntryWithIncomparableValue() { try { assertFalse(getMap().entrySet().contains(Helpers.mapEntry(k0(), IncomparableType.INSTANCE))); } catch (ClassCastException acceptable) { // allowed by the spec } } @MapFeature.Require(ALLOWS_NULL_KEY_QUERIES)
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Feb 21 16:49:06 GMT 2024 - 6.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/primitives/UnsignedBytesTest.java
// corresponding Comparable wrapper in java.lang. for (int i = 0; i < VALUES.length; i++) { for (int j = 0; j < VALUES.length; j++) { byte x = VALUES[i]; byte y = VALUES[j]; // note: spec requires only that the sign is the same assertWithMessage(x + ", " + y) .that(Math.signum(Ints.compare(i, j))) .isEqualTo(Math.signum(UnsignedBytes.compare(x, y))); } } }
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Tue Feb 20 17:00:05 GMT 2024 - 13.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/OptionalTest.java
public void testFromNullable() { Optional<String> optionalName = Optional.fromNullable("bob"); assertEquals("bob", optionalName.get()); } public void testFromNullable_null() { // not promised by spec, but easier to test assertSame(Optional.absent(), Optional.fromNullable(null)); } public void testIsPresent_no() { assertFalse(Optional.absent().isPresent()); }
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Feb 21 18:32:41 GMT 2024 - 11.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/cache/CacheBuilderSpecTest.java
} public void testParse_initialCapacity() { CacheBuilderSpec spec = parse("initialCapacity=10"); assertEquals(10, spec.initialCapacity.intValue()); assertNull(spec.maximumSize); assertNull(spec.maximumWeight); assertNull(spec.concurrencyLevel); assertNull(spec.keyStrength); assertNull(spec.valueStrength); assertNull(spec.writeExpirationTimeUnit);
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) -
guava-tests/test/com/google/common/collect/LegacyComparable.java
private final String value; LegacyComparable(String value) { this.value = value; } @Override public int compareTo(Object object) { // This method is spec'd to throw CCE if object is of the wrong type LegacyComparable that = (LegacyComparable) object; return this.value.compareTo(that.value); } @Override public boolean equals(@Nullable Object object) {
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Thu Feb 22 20:09:59 GMT 2024 - 2.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/primitives/UnsignedIntsTest.java
// Valid radix values are Character.MIN_RADIX to Character.MAX_RADIX, // inclusive. // // Note: According to the spec, a NumberFormatException is thrown for a number that is not // parseable, but the spec doesn't seem to say which exception is thrown for an invalid radix. // In contrast to the JVM, Kotlin native throws an Illegal argument exception in this case
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Tue Feb 06 16:10:08 GMT 2024 - 12.7K bytes - Viewed (1) -
android/guava-tests/test/com/google/common/hash/MacHashFunctionTest.java
import com.google.common.collect.Table; import com.google.common.testing.NullPointerTester; import java.security.Key; import java.util.Arrays; import javax.crypto.Mac; import javax.crypto.SecretKey; import javax.crypto.spec.SecretKeySpec; import junit.framework.TestCase; import org.checkerframework.checker.nullness.qual.Nullable; import sun.security.jca.ProviderList; import sun.security.jca.Providers; /**
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) -
guava-testlib/src/com/google/common/collect/testing/MinimalCollection.java
import java.util.Iterator; import org.checkerframework.checker.nullness.qual.NonNull; import org.checkerframework.checker.nullness.qual.Nullable; /** * A simplistic collection which implements only the bare minimum allowed by the spec, and throws * exceptions whenever it can. * * @author Kevin Bourrillion */ @GwtCompatible @ElementTypesAreNonnullByDefault public class MinimalCollection<E extends @Nullable Object> extends AbstractCollection<E> {
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed Feb 21 16:49:06 GMT 2024 - 3.8K bytes - Viewed (0)