- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for martinRepeat (0.19 sec)
-
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) -
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)