- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 1,981 for Booleans (0.07 seconds)
-
android/guava/src/com/google/common/primitives/Booleans.java
* Booleans.contains(array, false)} with {@code bitSet.nextClearBit(0) == sizeOfBitSet}. * * @param array an array of {@code boolean} values, possibly empty * @param target a primitive {@code boolean} value * @return {@code true} if {@code array[i] == target} for some value of {@code i} */ public static boolean contains(boolean[] array, boolean target) { for (boolean value : array) { if (value == target) {
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Sep 25 15:01:23 GMT 2025 - 20.6K bytes - Click Count (0) -
guava/src/com/google/common/primitives/Booleans.java
* Booleans.contains(array, false)} with {@code bitSet.nextClearBit(0) == sizeOfBitSet}. * * @param array an array of {@code boolean} values, possibly empty * @param target a primitive {@code boolean} value * @return {@code true} if {@code array[i] == target} for some value of {@code i} */ public static boolean contains(boolean[] array, boolean target) { for (boolean value : array) { if (value == target) {
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Sep 25 15:01:23 GMT 2025 - 20.6K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/primitives/BooleansTest.java
testRotate(new boolean[] {true}, 1, new boolean[] {true}); testRotate(new boolean[] {true}, 2, new boolean[] {true}); testRotate(new boolean[] {true, false}, -3, new boolean[] {false, true}); testRotate(new boolean[] {true, false}, -1, new boolean[] {false, true}); testRotate(new boolean[] {true, false}, -2, new boolean[] {true, false});
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Dec 11 22:56:33 GMT 2025 - 25.2K bytes - Click Count (0) -
guava/src/com/google/common/collect/ComparisonChain.java
} @Override public ComparisonChain compareTrueFirst(boolean left, boolean right) { return classify(Boolean.compare(right, left)); // reversed } @Override public ComparisonChain compareFalseFirst(boolean left, boolean right) { return classify(Boolean.compare(left, right)); } ComparisonChain classify(int result) {Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Mar 17 20:26:29 GMT 2025 - 11.1K bytes - Click Count (0) -
impl/maven-core/src/test/java/org/apache/maven/graph/FilteredProjectDependencyGraphTest.java
private final MavenProject bProject = createProject("B"); private final MavenProject cProject = createProject("C"); @ParameterizedTest @ValueSource(booleans = {true, false}) void downstreamProjectsShouldBeCached(boolean transitive) { FilteredProjectDependencyGraph graph = new FilteredProjectDependencyGraph(projectDependencyGraph, List.of(aProject));Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Wed Jun 04 20:56:29 GMT 2025 - 3K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbResourceLocatorInternalTest.java
// Happy path: shouldForceSigning returns the configured value @ParameterizedTest @ValueSource(booleans = { true, false }) @DisplayName("shouldForceSigning returns stubbed boolean value") void shouldForceSigningReturns(boolean expected) { when(locator.shouldForceSigning()).thenReturn(expected); boolean result = locator.shouldForceSigning(); assertEquals(expected, result);Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 6.9K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbTransportInternalTest.java
"true,true,false", "true,false,true", "false,true,true", "false,false,false" }) void disconnect_flagCombinations(boolean hard, boolean inuse, boolean expected) throws Exception { when(transport.disconnect(anyBoolean(), anyBoolean())).thenAnswer(inv -> { boolean h = inv.getArgument(0); boolean u = inv.getArgument(1); // Arbitrary behavior mapping for test purposes return (h && !u) || (!h && u);Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 12.1K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbPipeOutputStreamTest.java
} @ParameterizedTest @ValueSource(booleans = { true, false }) @DisplayName("isOpen delegates to handle.isOpen") void isOpen_delegates(boolean state) throws Exception { // Arrange SmbPipeOutputStream out = newStream(); when(handle.isOpen()).thenReturn(state); // Act boolean result = out.isOpen(); // AssertCreated: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.4K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbSessionInternalTest.java
// Happy path: isInUse returns the mocked state @ParameterizedTest @DisplayName("isInUse reflects current mocked state") @ValueSource(booleans = { true, false }) void isInUse_variants(boolean inUse) { when(session.isInUse()).thenReturn(inUse); boolean result = session.isInUse(); assertEquals(inUse, result); verify(session, times(1)).isInUse(); }Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 6.8K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbCopyUtilTest.java
public class SmbCopyUtilTest { // --- Tests for openCopyTargetFile --- @ParameterizedTest @ValueSource(booleans = { true, false }) @DisplayName("openCopyTargetFile sets correct access flags depending on alsoRead") void openCopyTargetFile_accessMask_respectsAlsoRead(boolean alsoRead) throws Exception { // Arrange SmbFile dest = mock(SmbFile.class);Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 12.1K bytes - Click Count (0)