Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for martinRepeat (0.07 sec)

  1. guava-tests/benchmark/com/google/common/base/StringsRepeatBenchmark.java

        }
        return new String(array);
      }
    
      @Benchmark
      void martinRepeat(long reps) {
        for (int i = 0; i < reps; i++) {
          String x = martinRepeat(originalString, count);
          if (x.length() != (originalString.length() * count)) {
            throw new RuntimeException("Wrong length: " + x);
          }
        }
      }
    
      private static String martinRepeat(String string, int count) {
        final int len = string.length();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Sep 17 20:24:24 UTC 2021
    - 3.3K bytes
    - Viewed (0)
  2. android/guava-tests/benchmark/com/google/common/base/StringsRepeatBenchmark.java

        }
        return new String(array);
      }
    
      @Benchmark
      void martinRepeat(long reps) {
        for (int i = 0; i < reps; i++) {
          String x = martinRepeat(originalString, count);
          if (x.length() != (originalString.length() * count)) {
            throw new RuntimeException("Wrong length: " + x);
          }
        }
      }
    
      private static String martinRepeat(String string, int count) {
        final int len = string.length();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Sep 17 20:24:24 UTC 2021
    - 3.3K bytes
    - Viewed (0)
Back to top