Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 737 for booleans (0.04 sec)

  1. 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) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  2. 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) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  3. 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});
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 25K bytes
    - Viewed (0)
  4. okhttp/src/jvmTest/kotlin/okhttp3/RouteFailureTest.kt

          "ConnectStart",
          "ConnectEnd",
          "ConnectionAcquired",
          "ConnectionReleased",
        )
      }
    
      @ParameterizedTest
      @ValueSource(booleans = [false, true])
      fun proxyMoveTest(cleanClose: Boolean) {
        // Define a single Proxy at myproxy:8008 that will artificially move during the test
        val proxySelector = RecordingProxySelector()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  5. okhttp/src/jvmTest/kotlin/okhttp3/ConnectionListenerTest.kt

        platform.assumeNotOpenJSSE()
        platform.assumeNotBouncyCastle()
        listener.forbidLock(get(client.connectionPool))
        listener.forbidLock(client.dispatcher)
      }
    
      @ParameterizedTest
      @ValueSource(booleans = [true, false])
      fun successfulCallEventSequence() {
        server!!.enqueue(MockResponse(body = "abc"))
        val call =
          client.newCall(
            Request
              .Builder()
              .url(server!!.url("/"))
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/base/PreconditionsTest.java

      @SuppressWarnings("null")
      public void overloadSelection() {
        Boolean boxedBoolean = null;
        boolean aBoolean = true;
        Long boxedLong = null;
        int anInt = 1;
        // With a boxed predicate, no overloads can be selected in phase 1
        // ambiguous without the call to .booleanValue to unbox the Boolean
        checkState(boxedBoolean.booleanValue(), "", 1);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 19K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/base/PreconditionsTest.java

      @SuppressWarnings("null")
      public void overloadSelection() {
        Boolean boxedBoolean = null;
        boolean aBoolean = true;
        Long boxedLong = null;
        int anInt = 1;
        // With a boxed predicate, no overloads can be selected in phase 1
        // ambiguous without the call to .booleanValue to unbox the Boolean
        checkState(boxedBoolean.booleanValue(), "", 1);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 19K bytes
    - Viewed (0)
  8. 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
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 1.8K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/auth/chain/LdapChainTest.java

        }
    
        // Test LdapManager implementation
        private static class TestLdapManager extends LdapManager {
            boolean insertCalled = false;
            boolean deleteCalled = false;
            boolean changePasswordCalled = false;
            boolean applyCalled = false;
            boolean applyModifiesUser = false;
    
            User insertedUser;
            User deletedUser;
            User appliedUser;
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/mylasta/action/FessUserBean.java

        public String[] getGroups() {
            return user.getGroupNames();
        }
    
        public boolean isEditable() {
            return user.isEditable();
        }
    
        public boolean hasRole(final String role) {
            return stream(user.getRoleNames()).get(stream -> stream.anyMatch(s -> s.equals(role)));
        }
    
        public boolean hasRoles(final String[] acceptedRoles) {
            return stream(user.getRoleNames())
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 5.1K bytes
    - Viewed (0)
Back to top