Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 601 for negative (0.39 sec)

  1. src/test/java/jcifs/internal/fscc/SmbInfoAllocationTest.java

            smbInfoAllocation.decode(buffer, 0, buffer.length);
    
            // The implementation reads values as signed integers and stores them as long
            // Negative values remain negative when stored in long fields
            // The calculations will result in negative values
            long expectedCapacity = (long) alloc * sectPerAlloc * bytesPerSect;
            assertEquals(expectedCapacity, smbInfoAllocation.getCapacity());
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/FileEntryTest.java

            return Stream.of(Arguments.of((LongGetter) FileEntry::createTime, -1L, "negative createTime"),
                    Arguments.of((LongGetter) FileEntry::createTime, 0L, "zero createTime"),
                    Arguments.of((LongGetter) FileEntry::createTime, Long.MAX_VALUE, "max createTime"),
    
                    Arguments.of((LongGetter) FileEntry::lastModified, -2L, "negative lastModified"),
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/primitives/Booleans.java

       *
       * @param a the first {@code boolean} to compare
       * @param b the second {@code boolean} to compare
       * @return a positive number if only {@code a} is {@code true}, a negative number if only {@code
       *     b} is true, or zero if {@code a == b}
       */
      @InlineMe(replacement = "Boolean.compare(a, b)")
      public static int compare(boolean a, boolean b) {
        return Boolean.compare(a, b);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  4. guava/src/com/google/common/primitives/Booleans.java

       *
       * @param a the first {@code boolean} to compare
       * @param b the second {@code boolean} to compare
       * @return a positive number if only {@code a} is {@code true}, a negative number if only {@code
       *     b} is true, or zero if {@code a == b}
       */
      @InlineMe(replacement = "Boolean.compare(a, b)")
      public static int compare(boolean a, boolean b) {
        return Boolean.compare(a, b);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/Smb2CancelRequestTest.java

        @DisplayName("Test edge case with minimum/negative values")
        void testMinimumValues() {
            // Given
            long negativeMid = -1L;
            long negativeAsyncId = -1L;
    
            // When
            Smb2CancelRequest request = new Smb2CancelRequest(mockConfig, negativeMid, negativeAsyncId);
    
            // Then
            assertEquals(negativeMid, request.getMid(), "Should handle negative MID");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb1/com/SmbComFindClose2Test.java

     * parameter word (the session identifier) is written in little‑endian form
     * and that the {@code toString} helper contains the expected values.
     *
     * <p>The tests also exercise edge cases such as negative (wrap‑around) session
     * identifiers and confirm that the writer does not alter any internal state.
     *</p>
     */
    @ExtendWith(MockitoExtension.class)
    class SmbComFindClose2Test {
    
        @Mock
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.1K bytes
    - Viewed (0)
  7. android/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)
  8. src/main/java/jcifs/util/InputValidator.java

         */
        public static void validateBufferSize(int size, int maxSize, String fieldName) {
            if (size < 0) {
                throw new IllegalArgumentException(fieldName + " size cannot be negative: " + size);
            }
            if (size > maxSize) {
                throw new IllegalArgumentException(fieldName + " size exceeds maximum (" + maxSize + "): " + size);
            }
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 13.5K bytes
    - Viewed (0)
  9. okhttp/src/commonJvmAndroid/kotlin/okhttp3/CacheControl.kt

        /**
         * Sets the maximum age of a cached response. If the cache response's age exceeds [maxAge], it
         * will not be used and a network request will be made.
         *
         * @param maxAge a non-negative duration. This is stored and transmitted with [TimeUnit.SECONDS]
         *     precision; finer precision will be lost.
         */
        fun maxAge(maxAge: Duration) =
          apply {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 10K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/SmbFileFilterTest.java

        void accept_lengthBasedFilter_handlesNumericEdges() throws Exception {
            // Arrange: filter that accepts only strictly positive length
            SmbFileFilter filter = f -> f.length() > 0;
    
            // negative size -> reject
            when(smbFile.length()).thenReturn(-1L);
            assertFalse(filter.accept(smbFile), "Negative size should be rejected");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.4K bytes
    - Viewed (0)
Back to top