Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 103 for intValue (0.04 sec)

  1. guava-tests/test/com/google/common/util/concurrent/ListenableFutureTaskTest.java

        // Finish the task by unblocking the task latch.  Then wait for the
        // listener to be called by blocking on the listener latch.
        taskLatch.countDown();
        assertEquals(25, task.get().intValue());
        assertTrue(listenerLatch.await(5, SECONDS));
        assertTrue(task.isDone());
        assertFalse(task.isCancelled());
      }
    
      public void testListenerCalledOnException() throws Exception {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 11 18:52:30 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/primitives/Ints.java

       */
      public static @Nullable Integer tryParse(String string, int radix) {
        Long result = Longs.tryParse(string, radix);
        if (result == null || result.longValue() != result.intValue()) {
          return null;
        } else {
          return result.intValue();
        }
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 31.4K bytes
    - Viewed (0)
  3. src/main/java/jcifs/pac/kerberos/KerberosEncData.java

                        DEROctetString addressOctets = ASN1Util.as(DEROctetString.class, addressSequence, 1);
    
                        this.userAddresses = new ArrayList<>();
                        if (addressType.getValue().intValue() == KerberosConstants.AF_INTERNET) {
                            InetAddress userAddress = null;
                            try {
                                userAddress = InetAddress.getByAddress(addressOctets.getOctets());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  4. guava-testlib/test/com/google/common/testing/NullPointerTesterTest.java

        @Keep
        public void oneNullableArgThrows(@Nullable String s) {
          doThrow(s);
        }
    
        @Keep
        public void twoArg(String s, Integer i) {
          checkNotNull(s);
          i.intValue();
        }
    
        @Keep
        public void twoMixedArgs(String s, @Nullable Integer i) {
          checkNotNull(s);
        }
    
        @Keep
        public void twoMixedArgs(@Nullable Integer i, String s) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Jul 14 14:44:08 UTC 2025
    - 47.7K bytes
    - Viewed (0)
  5. guava-tests/benchmark/com/google/common/math/DoubleMathRoundingBenchmark.java

      }
    
      @Benchmark
      int roundToBigInteger(int reps) {
        int tmp = 0;
        for (int i = 0; i < reps; i++) {
          int j = i & ARRAY_MASK;
          tmp += DoubleMath.roundToBigInteger(positiveDoubles[j], mode).intValue();
        }
        return tmp;
      }
    
      @Benchmark
      int log2Round(int reps) {
        int tmp = 0;
        for (int i = 0; i < reps; i++) {
          int j = i & ARRAY_MASK;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/cache/LongAdder.java

       */
      @Override
      public long longValue() {
        return sum();
      }
    
      /** Returns the {@link #sum} as an {@code int} after a narrowing primitive conversion. */
      @Override
      public int intValue() {
        return (int) sum();
      }
    
      /** Returns the {@link #sum} as a {@code float} after a widening primitive conversion. */
      @Override
      public float floatValue() {
        return (float) sum();
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/CommonServerMessageBlockRequestTest.java

            // When
            Integer result = request.getOverrideTimeout();
    
            // Then
            assertNotNull(result);
            assertEquals(0, result.intValue());
            verify(request, times(1)).getOverrideTimeout();
        }
    
        @Test
        @DisplayName("Test getOverrideTimeout with large timeout value")
        void testGetOverrideTimeoutWithLargeValue() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/mylasta/direction/FessProp.java

            if (userCode == null) {
                return false;
            }
    
            final int length = userCode.length();
            if (getUserCodeMinLengthAsInteger().intValue() > length || getUserCodeMaxLengthAsInteger().intValue() < length) {
                return false;
            }
    
            Pattern pattern = (Pattern) propMap.get(USER_CODE_PATTERN);
            if (pattern == null) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 86.5K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/app/web/admin/user/AdminUserAction.java

                throwValidationError(messages -> messages.addErrorsCrudCouldNotFindCrudTable(GLOBAL, id), this::asListHtml);
            });
            resetPassword(form);
            saveToken();
            if (form.crudMode.intValue() == CrudMode.EDIT) {
                // back
                form.crudMode = CrudMode.DETAILS;
                return asDetailsHtml();
            }
            form.crudMode = CrudMode.EDIT;
            return asEditHtml();
        }
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 19.5K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/util/concurrent/ListenableFutureTaskTest.java

        // Finish the task by unblocking the task latch.  Then wait for the
        // listener to be called by blocking on the listener latch.
        taskLatch.countDown();
        assertEquals(25, task.get().intValue());
        assertTrue(listenerLatch.await(5, SECONDS));
        assertTrue(task.isDone());
        assertFalse(task.isCancelled());
      }
    
      public void testListenerCalledOnException() throws Exception {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 11 18:52:30 UTC 2025
    - 4.8K bytes
    - Viewed (0)
Back to top