Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 1,460 for Booleans (0.06 seconds)

  1. guava-tests/test/com/google/common/collect/ComparisonChainTest.java

          }
        }
      }
    
      static class Bar {
        private final boolean isBaz;
    
        Bar(boolean isBaz) {
          this.isBaz = isBaz;
        }
    
        boolean isBaz() {
          return isBaz;
        }
      }
    
      /**
       * Validates that {@link Booleans#trueFirst()} and {@link Booleans#falseFirst()} can be used with
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Wed Feb 12 03:05:13 GMT 2025
    - 7.6K bytes
    - Click Count (0)
  2. 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)
  3. android/guava/src/com/google/common/primitives/package-info.java

     *   <li>{@link ImmutableLongArray}
     *   <li>{@link UnsignedInteger}
     *   <li>{@link UnsignedLong}
     * </ul>
     *
     * <h3>Per-type static utilities</h3>
     *
     * <ul>
     *   <li>{@link Booleans}
     *   <li>{@link Bytes}
     *       <ul>
     *         <li>{@link SignedBytes}
     *         <li>{@link UnsignedBytes}
     *       </ul>
     *   <li>{@link Chars}
     *   <li>{@link Doubles}
     *   <li>{@link Floats}
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Fri Jan 03 15:30:05 GMT 2025
    - 2K bytes
    - Click Count (0)
  4. 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)
  5. 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();
    
            // Assert
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 5.4K bytes
    - Click Count (0)
  6. 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)
  7. src/main/java/org/codelibs/core/convert/BooleanConversionUtil.java

            case null -> null;
            case Boolean b -> b;
            case Number n -> n.intValue() != 0;
            case String s -> switch (s.toLowerCase()) {
            case "true" -> Boolean.TRUE;
            case "false", "0" -> Boolean.FALSE;
            default -> Boolean.TRUE;
            };
            default -> Boolean.TRUE;
            };
        }
    
        /**
         * Converts to {@literal boolean}.
         *
         * @param o
    Created: Sat Dec 20 08:55:33 GMT 2025
    - Last Modified: Thu Jul 31 08:16:49 GMT 2025
    - 1.8K bytes
    - Click Count (0)
  8. okhttp-testing-support/src/main/kotlin/okhttp3/DelegatingSSLSocket.kt

        delegate!!.startHandshake()
      }
    
      override fun setUseClientMode(mode: Boolean) {
        delegate!!.useClientMode = mode
      }
    
      override fun getUseClientMode(): Boolean = delegate!!.useClientMode
    
      override fun setNeedClientAuth(need: Boolean) {
        delegate!!.needClientAuth = need
      }
    
      override fun setWantClientAuth(want: Boolean) {
        delegate!!.wantClientAuth = want
      }
    
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 7.4K bytes
    - Click Count (0)
  9. compat/maven-compat/src/main/java/org/apache/maven/profiles/activation/OperatingSystemProfileActivator.java

        @Override
        public boolean canDetermineActivation(Profile profile) {
            Activation activation = profile.getActivation();
            return activation != null && activation.getOs() != null;
        }
    
        @Override
        public boolean isActive(Profile profile) {
            Activation activation = profile.getActivation();
            ActivationOS os = activation.getOs();
    
            boolean result = ensureAtLeastOneNonNull(os);
    
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 3.7K bytes
    - Click Count (0)
  10. src/test/java/jcifs/internal/SmbNegotiationRequestTest.java

         */
        private static class TestSmbNegotiationRequest implements SmbNegotiationRequest {
            private final boolean signingEnforced;
    
            TestSmbNegotiationRequest(boolean signingEnforced) {
                this.signingEnforced = signingEnforced;
            }
    
            @Override
            public boolean isSigningEnforced() {
                return signingEnforced;
            }
        }
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 6.4K bytes
    - Click Count (0)
Back to Top