Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for stringBuilderIsEmpty (0.19 sec)

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

      }
    
      /**
       * Only appends delimiter if the accumulated string is non-empty. Note: this isn't a candidate
       * implementation for Joiner since it fails on leading empty components.
       */
      @Benchmark
      int stringBuilderIsEmpty(int reps) {
        int dummy = 0;
        for (int i = 0; i < reps; i++) {
          StringBuilder sb = new StringBuilder();
          for (String comp : components) {
            if (sb.length() > 0) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 4.9K bytes
    - Viewed (0)
  2. guava-tests/benchmark/com/google/common/base/JoinerBenchmark.java

      }
    
      /**
       * Only appends delimiter if the accumulated string is non-empty. Note: this isn't a candidate
       * implementation for Joiner since it fails on leading empty components.
       */
      @Benchmark
      int stringBuilderIsEmpty(int reps) {
        int dummy = 0;
        for (int i = 0; i < reps; i++) {
          StringBuilder sb = new StringBuilder();
          for (String comp : components) {
            if (sb.length() > 0) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 4.9K bytes
    - Viewed (0)
Back to top