- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 240 for ints (0.02 sec)
-
android/guava/src/com/google/common/primitives/Ints.java
public static int constrainToRange(int value, int min, int max) { checkArgument(min <= max, "min (%s) must be less than or equal to max (%s)", min, max); return Math.min(Math.max(value, min), max); } /** * Returns the values from each provided array combined into a single array. For example, {@code * concat(new int[] {a, b}, new int[] {}, new int[] {c}} returns the array {@code {a, b, c}}. *
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 31.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/primitives/IntsTest.java
new int[] {(int) 2, (int) 3, (int) 2, (int) 3, (int) 4, (int) 2, (int) 3}, new int[] {(int) 2, (int) 3, (int) 4})) .isEqualTo(2); assertThat( Ints.indexOf( new int[] {(int) 2, (int) 2, (int) 3, (int) 4, (int) 2, (int) 3, (int) 4}, new int[] {(int) 2, (int) 3, (int) 4})) .isEqualTo(1); assertThat( Ints.indexOf(
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 29.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/primitives/IntsTest.java
new int[] {(int) 2, (int) 3, (int) 2, (int) 3, (int) 4, (int) 2, (int) 3}, new int[] {(int) 2, (int) 3, (int) 4})) .isEqualTo(2); assertThat( Ints.indexOf( new int[] {(int) 2, (int) 2, (int) 3, (int) 4, (int) 2, (int) 3, (int) 4}, new int[] {(int) 2, (int) 3, (int) 4})) .isEqualTo(1); assertThat( Ints.indexOf(
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 29.2K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/TransWaitNamedPipeResponseTest.java
@Nested @DisplayName("Wire format method behaviour") class WireFormatMethods { @ParameterizedTest @ValueSource(ints = { 0, 1, -1, Integer.MAX_VALUE, Integer.MIN_VALUE }) @DisplayName("writeSetupWireFormat returns 0 for all indices") void writeSetupWireFormatReturnsZero(int index) { TransWaitNamedPipeResponse resp = new TransWaitNamedPipeResponse();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 5.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/com/SmbComSetInformationResponseTest.java
void nullArray() { assertEquals(0, response.writeParameterWordsWireFormat(null, 0)); } @ParameterizedTest @ValueSource(ints = { 0, 5, 9 }) @DisplayName("Returns 0 with valid array and various indices") void nonNullArray(int index) { byte[] arr = new byte[10]; assertEquals(0, response.writeParameterWordsWireFormat(arr, index)); } } @Nested
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 4.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/primitives/IntArrayAsListTest.java
public SampleIntegers() { super((int) 0, (int) 1, (int) 2, (int) 3, (int) 4); } }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 5.8K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComLogoffAndXTest.java
assertNotNull(msg, "Message must not be null after construction"); } @ParameterizedTest @ValueSource(ints = { 0, 1, 5, -1, 10 }) @DisplayName("writeParameterWordsWireFormat always returns 0") void writeParameterWordsWireFormatReturnsZero(int index) { SmbComLogoffAndX msg = new SmbComLogoffAndX(null);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.8K bytes - Viewed (0) -
src/test/java/jcifs/smb1/dcerpc/ndr/NdrShortTest.java
* Validate that the constructor masks the supplied value to its * lowest 8 bits (NdrShort incorrectly masks to 8 bits even though it's a short). */ @ParameterizedTest @ValueSource(ints = { 0, 1, 255, -1, 256, 65535 }) void constructorMasksValue(int input) { NdrShort ns = new NdrShort(input); // NdrShort masks to 0xFF (8 bits) in its constructor int expected = input & 0xFF;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/session/Smb2LogoffResponseTest.java
@ParameterizedTest @ValueSource(ints = { -10, -1, 0, 1, 42 }) @DisplayName("Returns 0 regardless of dst and index") void returnsZero_forVariousIndexes(int index) { // Arrange Smb2LogoffResponse resp = newResponse(); byte[] buffer = new byte[8]; byte[] original = buffer.clone(); // Act int written = resp.writeBytesWireFormat(buffer, index);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/nt/FileNotifyInformationImplTest.java
@DisplayName("Test decode with aligned next entry offsets") @ValueSource(ints = { 0, 4, 8, 16, 32, 64, 128, 256, 1024 }) void testDecodeWithAlignedOffsets(int nextOffset) throws SMBProtocolDecodingException { byte[] buffer = createNotificationBufferWithNextOffset("aligned.txt", FileNotifyInformation.FILE_ACTION_ADDED, nextOffset); int bytesRead = notifyInfo.decode(buffer, 0, buffer.length);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.1K bytes - Viewed (0)