- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 110 for checkcast (0.25 sec)
-
android/guava-tests/test/com/google/common/primitives/SignedBytesTest.java
private static final byte GREATEST = Byte.MAX_VALUE; private static final byte[] VALUES = {LEAST, -1, 0, 1, GREATEST}; public void testCheckedCast() { for (byte value : VALUES) { assertThat(SignedBytes.checkedCast((long) value)).isEqualTo(value); } assertCastFails(GREATEST + 1L); assertCastFails(LEAST - 1L); assertCastFails(Long.MAX_VALUE); assertCastFails(Long.MIN_VALUE); }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Feb 20 17:00:05 UTC 2024 - 7K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/cache/LoadingCacheSingleThreadBenchmark.java
@BeforeExperiment void setUp() { // random integers will be generated in this range, then raised to the // power of (1/concentration) and floor()ed max = Ints.checkedCast((long) Math.pow(distinctKeys, concentration)); cache = CacheBuilder.newBuilder() .concurrencyLevel(segments) .maximumSize(maximumSize) .build(
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 3.4K bytes - Viewed (0) -
.github/pull_request_template.md
Following this checklist to help us incorporate your contribution quickly and easily: - [ ] Make sure there is a [JIRA issue](https://issues.apache.org/jira/browse/MNG) filed for the change (usually before you start working on it). Trivial changes like typos do not require a JIRA issue. Your pull request should address just this issue, without pulling in other changes.
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Tue Dec 20 13:14:27 UTC 2022 - 1.9K bytes - Viewed (0) -
pilot/pkg/bootstrap/server_test.go
if istiodCert, err := s.getIstiodCertificate(nil); istiodCert == nil || err != nil { t.Errorf("Istiod failed to generate new DNS cert") } } else { if len(c.expCert) != 0 { if !checkCert(t, s, c.expCert, c.expKey) { t.Errorf("Istiod certificate does not match the expectation") } } else { if _, err := s.getIstiodCertificate(nil); err == nil {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 13 17:48:28 UTC 2024 - 23.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/primitives/UnsignedIntsTest.java
for (long value : UNSIGNED_INTS) { assertThat(UnsignedInts.toLong(UnsignedInts.checkedCast(value))).isEqualTo(value); } assertCastFails(1L << 32); assertCastFails(-1L); assertCastFails(Long.MAX_VALUE); assertCastFails(Long.MIN_VALUE); } private static void assertCastFails(long value) { try { UnsignedInts.checkedCast(value); fail("Cast to int should have failed: " + value);
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Feb 06 16:10:08 UTC 2024 - 12.7K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/internal/instantiation/generator/AsmBackedClassGenerator.java
RETURN_CONVENTION_METHOD_TYPE )); _INVOKESTATIC(DEPRECATION_LOGGER_TYPE, "whileDisabled", DEPRECATION_LOGGER_WHILE_DISABLED_FACTORY_METHOD); _CHECKCAST(CONVENTION_TYPE); _ARETURN(); }}); } @Override public void addExtensionsProperty() {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri May 24 15:40:00 UTC 2024 - 100.6K bytes - Viewed (0) -
.github/ISSUE_TEMPLATE/feature_enhancement_request.yaml
label: Concrete Use Cases description: Please provide use cases that actually came up in the real world. validations: required: true - type: checkboxes attributes: label: Checklist options: - label: > I agree to follow the [code of conduct](https://github.com/google/.github/blob/master/CODE_OF_CONDUCT.md). required: true - label: >
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Fri Nov 17 18:47:47 UTC 2023 - 3.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/primitives/UnsignedIntsTest.java
for (long value : UNSIGNED_INTS) { assertThat(UnsignedInts.toLong(UnsignedInts.checkedCast(value))).isEqualTo(value); } assertCastFails(1L << 32); assertCastFails(-1L); assertCastFails(Long.MAX_VALUE); assertCastFails(Long.MIN_VALUE); } private static void assertCastFails(long value) { try { UnsignedInts.checkedCast(value); fail("Cast to int should have failed: " + value);
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Feb 06 16:10:08 UTC 2024 - 12.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/primitives/UnsignedBytesTest.java
assertThat(UnsignedBytes.toInt((byte) -1)).isEqualTo(255); } public void testCheckedCast() { for (byte value : VALUES) { assertThat(UnsignedBytes.checkedCast(UnsignedBytes.toInt(value))).isEqualTo(value); } assertCastFails(256L); assertCastFails(-1L); assertCastFails(Long.MAX_VALUE); assertCastFails(Long.MIN_VALUE); }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Feb 20 17:00:05 UTC 2024 - 13.4K bytes - Viewed (0) -
.github/bot_config.yml
compiler_assignees: - joker-eph - sanjoy # filesystem path filesystem_path: - tensorflow/c/experimental/filesystem # security path security_path: - tensorflow/security # words checklist segfault_memory: - segfault - memory leaks # assignees filesystem_security_assignee: - mihaimaruseac # Cuda Comment cuda_comment: >
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Jun 03 04:55:57 UTC 2024 - 4K bytes - Viewed (0)