- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 401 for negate (0.1 sec)
-
android/guava/src/com/google/common/io/ByteSource.java
final long offset; final long length; SlicedByteSource(long offset, long length) { checkArgument(offset >= 0, "offset (%s) may not be negative", offset); checkArgument(length >= 0, "length (%s) may not be negative", length); this.offset = offset; this.length = length; } @Override public InputStream openStream() throws IOException {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Mar 20 20:55:20 UTC 2025 - 25.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/base/PreconditionsTest.java
IndexOutOfBoundsException expected = assertThrows(IndexOutOfBoundsException.class, () -> checkElementIndex(-1, 1)); assertThat(expected).hasMessageThat().isEqualTo("index (-1) must not be negative"); } public void testCheckElementIndex_tooHigh() { IndexOutOfBoundsException expected = assertThrows(IndexOutOfBoundsException.class, () -> checkElementIndex(1, 1));
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 19K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/PreconditionsTest.java
IndexOutOfBoundsException expected = assertThrows(IndexOutOfBoundsException.class, () -> checkElementIndex(-1, 1)); assertThat(expected).hasMessageThat().isEqualTo("index (-1) must not be negative"); } public void testCheckElementIndex_tooHigh() { IndexOutOfBoundsException expected = assertThrows(IndexOutOfBoundsException.class, () -> checkElementIndex(1, 1));
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 19K bytes - Viewed (0) -
guava/src/com/google/common/collect/CollectPreconditions.java
if (value < 0) { throw new IllegalArgumentException(name + " cannot be negative but was: " + value); } return value; } @CanIgnoreReturnValue static long checkNonnegative(long value, String name) { if (value < 0) { throw new IllegalArgumentException(name + " cannot be negative but was: " + value); } return value; }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Aug 10 19:54:19 UTC 2025 - 2.1K bytes - Viewed (0) -
cmd/httprange.go
} // GetLength - get length of range func (h *HTTPRangeSpec) GetLength(resourceSize int64) (rangeLength int64, err error) { switch { case resourceSize < 0: return 0, errors.New("Resource size cannot be negative") case h == nil: rangeLength = resourceSize case h.IsSuffixLength: specifiedLen := -h.Start rangeLength = min(specifiedLen, resourceSize) case h.Start >= resourceSize:
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 5.9K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/MultisetSetCountConditionallyTester.java
} private void assertSetCountNegativeOldCount() { try { getMultiset().setCount(e3(), -1, 1); fail("calling setCount() with a negative oldCount should throw IllegalArgumentException"); } catch (IllegalArgumentException expected) { } } // Negative oldCount. @CollectionFeature.Require(SUPPORTS_ADD) public void testSetCountConditional_negativeOldCount_addSupported() {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Nov 14 23:40:07 UTC 2024 - 4K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileInternalInfoTest.java
assertTrue(result.contains("indexNumber=0")); } @Test @DisplayName("Test toString with negative index number") void testToStringWithNegativeIndexNumber() throws SMBProtocolDecodingException { // Setup test data with negative value byte[] buffer = new byte[8]; long expectedIndexNumber = -9999999999L; SMBUtil.writeInt8(expectedIndexNumber, buffer, 0);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.1K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/ndr/NdrLongTest.java
// Test case 2: Negative value int negativeValue = -54321; NdrLong ndrLongNegative = new NdrLong(negativeValue); assertEquals(negativeValue, ndrLongNegative.value, "Constructor should correctly initialize with a negative value."); // Test case 3: Zero value int zeroValue = 0;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3.2K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Multiset.java
* <li>{@link HashMultiset} * <li>{@link LinkedHashMultiset} * <li>{@link TreeMultiset} * <li>{@link EnumMultiset} * <li>{@link ConcurrentHashMultiset} * </ul> * * <p>If your values may be zero, negative, or outside the range of an int, you may wish to use * {@link com.google.common.util.concurrent.AtomicLongMap} instead. Note, however, that unlike * {@code Multiset}, {@code AtomicLongMap} does not automatically remove zeros. *
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue Jul 08 18:32:10 UTC 2025 - 19.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ioctl/SrvCopychunkTest.java
@DisplayName("Should create instance with various offset values") @CsvSource({ "0, 0, 1024", "1024, 2048, 4096", "9223372036854775807, 9223372036854775807, 2147483647", // Max long values "-1, -1, -1", // Negative values (should still create instance) "0, 9223372036854775807, 0" // Edge cases }) void testConstructorWithVariousValues(long sourceOffset, long targetOffset, int length) { // When
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.4K bytes - Viewed (0)