Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 31 for Template (0.16 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/testers/Platform.java

    /**
     * This class is emulated in GWT.
     *
     * @author Hayward Chan
     */
    @GwtCompatible
    final class Platform {
    
      /** Format the template with args, only supports the placeholder {@code %s}. */
      static String format(String template, Object... args) {
        return String.format(Locale.ROOT, template, args);
      }
    
      /** See {@link ListListIteratorTester} */
      static int listListIteratorTesterNumIterations() {
        return 4;
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 1.3K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/base/Verify.java

       * custom message otherwise.
       *
       * @param expression a boolean expression
       * @param errorMessageTemplate a template for the exception message should the check fail. The
       *     message is formed by replacing each {@code %s} placeholder in the template with an
       *     argument. These are matched by position - the first {@code %s} gets {@code
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon May 17 14:07:47 GMT 2021
    - 18.5K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/Platform.java

      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. guava/src/com/google/common/base/Preconditions.java

       *
       * @param expression a boolean expression
       * @param errorMessageTemplate a template for the exception message should the check fail. The
       *     message is formed by replacing each {@code %s} placeholder in the template with an
       *     argument. These are matched by position - the first {@code %s} gets {@code
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Wed Feb 14 15:46:55 GMT 2024
    - 52.9K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/testing/RelationshipTester.java

            unrelatedInfo,
            !equivalence.equivalent(itemInfo.value, unrelatedInfo.value));
      }
    
      private void assertWithTemplate(String template, Item<T> item, Item<T> other, boolean condition) {
        if (!condition) {
          throw new AssertionFailedError(
              template
                  .replace("$RELATIONSHIP", relationshipName)
                  .replace("$HASH", hashName)
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Apr 25 11:57:12 GMT 2023
    - 5.9K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/util/concurrent/AbstractTransformFuture.java

         * it.
         */
        setResult(transformResult);
      }
    
      /** Template method for subtypes to actually run the transform. */
      @ForOverride
      @ParametricNullness
      abstract T doTransform(F function, @ParametricNullness I result) throws Exception;
    
      /** Template method for subtypes to actually set the result. */
      @ForOverride
      abstract void setResult(@ParametricNullness T result);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 01 21:46:34 GMT 2024
    - 10.6K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/math/BigIntegerMathTest.java

        tester.setDefault(long.class, 1L);
        tester.testAllPublicStaticMethods(BigIntegerMath.class);
      }
    
      @GwtIncompatible // String.format
      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 Feb 07 17:50:39 GMT 2024
    - 28.2K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/math/BigIntegerMathTest.java

        tester.setDefault(long.class, 1L);
        tester.testAllPublicStaticMethods(BigIntegerMath.class);
      }
    
      @GwtIncompatible // String.format
      private static void failFormat(String template, Object... args) {
        fail(String.format(template, args));
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 28.2K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/math/LongMathTest.java

            } catch (ArithmeticException expected) {
              // success
            }
          }
        }
      }
    
      private static void failFormat(String template, Object... args) {
        assertWithMessage(template, args).fail();
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 04 20:15:57 GMT 2024
    - 32.5K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/base/PreconditionsTest.java

      }
    
      @J2ktIncompatible
      @GwtIncompatible // NullPointerTester
      public void testNullPointers() {
        /*
         * Don't bother testing: Preconditions defines a bunch of methods that accept a template (or
         * even entire message) that simultaneously:
         *
         * - _shouldn't_ be null, so we don't annotate it with @Nullable
         *
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 19.8K bytes
    - Viewed (0)
Back to top