Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 796 for Patch (0.23 sec)

  1. android/guava/src/com/google/common/math/DoubleUtils.java

        return longBitsToDouble(significand | ONE_BITS);
      }
    
      static double bigToDouble(BigInteger x) {
        // This is an extremely fast implementation of BigInteger.doubleValue(). JDK patch pending.
        BigInteger absX = x.abs();
        int exponent = absX.bitLength() - 1;
        // exponent == floor(log2(abs(x)))
        if (exponent < Long.SIZE - 1) {
          return x.longValue();
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 28 15:37:52 GMT 2021
    - 5.1K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/net/HostAndPort.java

      /**
       * Split a freeform string into a host and port, without strict validation.
       *
       * <p>Note that the host-only formats will leave the port field undefined. You can use {@link
       * #withDefaultPort(int)} to patch in a default value.
       *
       * @param hostPortString the input string to parse.
       * @return if parsing was successful, a populated HostAndPort object.
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Aug 22 20:55:57 GMT 2023
    - 11.3K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

        return new CheckedCallable<String>() {
          @Override
          protected String realCall() {
            try {
              latch.await();
            } catch (InterruptedException quittingTime) {
            }
            return TEST_STRING;
          }
        };
      }
    
      public Runnable awaiter(final CountDownLatch latch) {
        return new CheckedRunnable() {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 37.7K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/util/concurrent/testing/MockFutureListener.java

       *     result doesn't match the expected value.
       */
      public void assertSuccess(Object expectedData) throws Throwable {
        // Verify that the listener executed in a reasonable amount of time.
        Assert.assertTrue(countDownLatch.await(1L, SECONDS));
    
        try {
          Assert.assertEquals(expectedData, future.get());
        } catch (ExecutionException e) {
          throw e.getCause();
        }
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri May 12 18:12:42 GMT 2023
    - 3K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/util/concurrent/AbstractServiceTest.java

      }
    
      private static class NoOpThreadedService extends AbstractExecutionThreadService {
        final CountDownLatch latch = new CountDownLatch(1);
    
        @Override
        protected void run() throws Exception {
          latch.await();
        }
    
        @Override
        protected void triggerShutdown() {
          latch.countDown();
        }
      }
    
      private static class StartFailingService extends AbstractService {
        @Override
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 29.3K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/util/concurrent/TestThread.java

            try {
              result = invokeMethod(request.methodName, request.arguments);
            } catch (ThreadDeath death) {
              return;
            } catch (InvocationTargetException exception) {
              responseQueue.put(new Response(request.methodName, null, exception.getTargetException()));
              continue;
            } catch (Throwable throwable) {
              responseQueue.put(new Response(request.methodName, null, throwable));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 26 20:07:17 GMT 2023
    - 10.9K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/AbstractImmutableSetTest.java

        try {
          copyOf((String[]) null);
          fail();
        } catch (NullPointerException expected) {
        }
      }
    
      public void testCopyOf_arrayContainingOnlyNull() {
        @Nullable String[] array = new @Nullable String[] {null};
        try {
          copyOf((String[]) array);
          fail();
        } catch (NullPointerException expected) {
        }
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 18.7K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/AbstractImmutableSetTest.java

        try {
          copyOf((String[]) null);
          fail();
        } catch (NullPointerException expected) {
        }
      }
    
      public void testCopyOf_arrayContainingOnlyNull() {
        @Nullable String[] array = new @Nullable String[] {null};
        try {
          copyOf((String[]) array);
          fail();
        } catch (NullPointerException expected) {
        }
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 18.7K bytes
    - Viewed (0)
  9. guava/src/com/google/common/cache/CacheBuilderSpec.java

                durationInNanos(that.refreshDuration, that.refreshTimeUnit));
      }
    
      /**
       * Converts an expiration duration/unit pair into a single Long for hashing and equality. Uses
       * nanos to match CacheBuilder implementation.
       */
      @CheckForNull
      private static Long durationInNanos(long duration, @CheckForNull TimeUnit unit) {
        return (unit == null) ? null : unit.toNanos(duration);
      }
    
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Aug 22 14:27:44 GMT 2022
    - 18.1K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/collect/testing/MapInterfaceTest.java

        Map<K, V> map;
        try {
          map = makePopulatedMap();
        } catch (UnsupportedOperationException e) {
          return;
        }
    
        if (supportsClear) {
          map.clear();
          assertTrue(map.isEmpty());
        } else {
          try {
            map.clear();
            fail("Expected UnsupportedOperationException.");
          } catch (UnsupportedOperationException expected) {
          }
        }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 45.9K bytes
    - Viewed (0)
Back to top