Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 181 for Format (0.15 sec)

  1. guava-tests/test/com/google/common/math/DoubleUtilsTest.java

      }
    
      public void testOneBits() {
        assertEquals(DoubleUtils.ONE_BITS, Double.doubleToRawLongBits(1.0));
      }
    
      private static void failFormat(String template, Object... args) {
        fail(String.format(template, args));
      }
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 2.9K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/AbstractTester.java

        return super.getName();
      }
    
      @J2ktIncompatible
      @GwtIncompatible // not used under GWT, and super.getName() is not available under J2CL
      @Override
      public String getName() {
        return Platform.format("%s[%s]", super.getName(), suiteName);
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 2.9K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/Platform.java

      // Class.cast is not supported in GWT.  This method is a no-op in GWT.
      static void checkCast(Class<?> clazz, Object obj) {
        Object unused = clazz.cast(obj);
      }
    
      static String format(String template, Object... args) {
        return String.format(Locale.ROOT, template, args);
      }
    
      private Platform() {}
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Aug 04 01:39:13 GMT 2022
    - 1.3K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/reflect/Types.java

        return new WildcardTypeImpl(new Type[] {lowerBound}, new Type[] {Object.class});
      }
    
      /**
       * Returns a human-readable string representation of {@code type}.
       *
       * <p>The format is subject to change.
       */
      static String toString(Type type) {
        return (type instanceof Class) ? ((Class<?>) type).getName() : type.toString();
      }
    
      @CheckForNull
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/RateLimiter.java

       *     arbitrary past or present time
       */
      abstract long reserveEarliestAvailable(int permits, long nowMicros);
    
      @Override
      public String toString() {
        return String.format(Locale.ROOT, "RateLimiter[stableRate=%3.1fqps]", getRate());
      }
    
      abstract static class SleepingStopwatch {
        /** Constructor for use by subclasses. */
        protected SleepingStopwatch() {}
    
        /*
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 04 09:45:04 GMT 2023
    - 18.2K bytes
    - Viewed (0)
  6. guava/src/com/google/common/base/Ascii.java

      public static final byte BEL = 7;
    
      /**
       * Backspace ('\b'): A format effector which controls the movement of the printing position one
       * printing space backward on the same printing line. (Applicable also to display devices.)
       *
       * @since 8.0
       */
      public static final byte BS = 8;
    
      /**
       * Horizontal Tabulation ('\t'): A format effector which controls the movement of the printing
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Jul 19 15:43:07 GMT 2021
    - 21.6K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/math/LinearTransformation.java

          LinearTransformation result = inverse;
          return (result == null) ? inverse = createInverse() : result;
        }
    
        @Override
        public String toString() {
          return String.format("y = %g * x + %g", slope, yIntercept);
        }
    
        private LinearTransformation createInverse() {
          if (slope != 0.0) {
            return new RegularLinearTransformation(1.0 / slope, -1.0 * yIntercept / slope, this);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 17:02:53 GMT 2023
    - 9.6K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/FeatureSpecificTestSuiteBuilder.java

        Method method;
        try {
          method = extractMethod(test);
        } catch (IllegalArgumentException e) {
          logger.finer(Platform.format("%s: including by default: %s", test, e.getMessage()));
          return true;
        }
        if (suppressedTests.contains(method)) {
          logger.finer(Platform.format("%s: excluding because it was explicitly suppressed.", test));
          return false;
        }
        TesterRequirements requirements;
        try {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 10.2K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/util/concurrent/UncaughtExceptionHandlers.java

        }
    
        @Override
        public void uncaughtException(Thread t, Throwable e) {
          try {
            logger
                .get()
                .log(
                    SEVERE,
                    String.format(Locale.ROOT, "Caught an exception in %s.  Shutting down.", t),
                    e);
          } catch (Throwable errorInLogging) { // sneaky checked exception
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Dec 14 20:35:03 GMT 2023
    - 2.8K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/util/concurrent/RateLimiterTest.java

        assertThrows(IllegalArgumentException.class, () -> RateLimiter.create(1.0, -1, NANOSECONDS));
      }
    
      @AndroidIncompatible // difference in String.format rounding?
      public void testWarmUp() {
        RateLimiter limiter = RateLimiter.create(2.0, 4000, MILLISECONDS, 3.0, stopwatch);
        for (int i = 0; i < 8; i++) {
          limiter.acquire(); // #1
        }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 21.6K bytes
    - Viewed (0)
Back to top