Search Options

Results per page
Sort
Preferred Languages
Advance

Results 271 - 280 of 404 for negation (0.14 sec)

  1. android/guava/src/com/google/common/graph/Graphs.java

      }
    
      @CanIgnoreReturnValue
      static int checkNonNegative(int value) {
        checkArgument(value >= 0, "Not true that %s is non-negative.", value);
        return value;
      }
    
      @CanIgnoreReturnValue
      static long checkNonNegative(long value) {
        checkArgument(value >= 0, "Not true that %s is non-negative.", value);
        return value;
      }
    
      @CanIgnoreReturnValue
      static int checkPositive(int value) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Aug 01 00:26:14 UTC 2025
    - 22.7K bytes
    - Viewed (0)
  2. guava/src/com/google/common/graph/Graphs.java

      }
    
      @CanIgnoreReturnValue
      static int checkNonNegative(int value) {
        checkArgument(value >= 0, "Not true that %s is non-negative.", value);
        return value;
      }
    
      @CanIgnoreReturnValue
      static long checkNonNegative(long value) {
        checkArgument(value >= 0, "Not true that %s is non-negative.", value);
        return value;
      }
    
      @CanIgnoreReturnValue
      static int checkPositive(int value) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Aug 01 00:26:14 UTC 2025
    - 23.3K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/primitives/UnsignedLongsTest.java

        assertThrows(
            NumberFormatException.class,
            () -> UnsignedLongs.parseUnsignedLong("0", Character.MAX_RADIX + 1));
    
        // The radix is used as an array index, so try a negative value.
        assertThrows(NumberFormatException.class, () -> UnsignedLongs.parseUnsignedLong("0", -1));
      }
    
      public void testToString() {
        String[] tests = {
          "0",
          "ffffffffffffffff",
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb1/trans/TransWaitNamedPipeResponseTest.java

            assertEquals(0, response.readParametersWireFormat(emptyBuffer, 0, 0));
            assertEquals(0, response.readDataWireFormat(emptyBuffer, 0, 0));
        }
    
        @Test
        @DisplayName("Methods should handle negative indices")
        void testMethodsWithNegativeIndices() {
            // Arrange
            byte[] buffer = new byte[100];
            int negativeIndex = -1;
    
            // Act & Assert
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  5. okhttp/src/jvmTest/kotlin/okhttp3/UrlComponentEncodingTester.kt

          encodings[ 0x12] = encoding // Device Control 2
          encodings[ 0x13] = encoding // Device Control 3 (oft. XOFF)
          encodings[ 0x14] = encoding // Device Control 4
          encodings[ 0x15] = encoding // Negative Acknowledgment
          encodings[ 0x16] = encoding // Synchronous idle
          encodings[ 0x17] = encoding // End of Transmission Block
          encodings[ 0x18] = encoding // Cancel
          encodings[ 0x19] = encoding // End of Medium
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  6. src/bytes/buffer_test.go

    		switch err := recover().(type) {
    		case nil:
    			t.Fatal("bytes.Buffer.ReadFrom didn't panic")
    		case error:
    			// this is the error string of errNegativeRead
    			wantError := "bytes.Buffer: reader returned negative count from Read"
    			if err.Error() != wantError {
    				t.Fatalf("recovered panic: got %v, want %v", err.Error(), wantError)
    			}
    		default:
    			t.Fatalf("unexpected panic value: %#v", err)
    		}
    	}()
    
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Mon May 19 16:13:04 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb/NtlmPasswordAuthenticatorTest.java

            assertFalse(auth.isExpired());
    
            // Test with no expiration (TTL = 0)
            auth.setAuthenticationTTL(0);
            Thread.sleep(100);
            assertFalse(auth.isExpired());
    
            // Test with negative TTL (no expiration)
            auth.setAuthenticationTTL(-1);
            Thread.sleep(100);
            assertFalse(auth.isExpired());
        }
    
        /**
         * Test close() method
         */
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 23.3K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectResponseTest.java

            int[] invalidSizes = { -1, 0, 1, 2, 3, 5, 6, 8, 16, 32, 64, 128, 256, 512, 1024 };
    
            for (int invalidSize : invalidSizes) {
                byte[] buffer = new byte[256];
    
                // Handle negative values (will wrap around in writeInt2)
                if (invalidSize >= 0) {
                    SMBUtil.writeInt2(invalidSize, buffer, 0);
    
                    // When & Then
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb1/trans/nt/NtTransQuerySecurityDescTest.java

            assertEquals(0x00, dst[13]);
    
            // Check security information
            assertEquals(0x12345678, SMBUtil.readInt4(dst, 14));
        }
    
        @Test
        @DisplayName("Test with negative FID value (should handle as unsigned)")
        void testNegativeFidValue() {
            int fid = -1; // Will be treated as 0xFFFF in unsigned 16-bit
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.9K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb1/smb1/Dfs.java

        static final boolean DISABLED = Config.getBoolean("jcifs.smb1.smb.client.dfs.disabled", false);
    
        /**
         * Sentinel cache entry indicating a negative cache result
         */
        protected static CacheEntry FALSE_ENTRY = new Dfs.CacheEntry(0L);
    
        /**
         * Cache of trusted domains for DFS resolution
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 14.2K bytes
    - Viewed (0)
Back to top