Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for CharEscaperBuilder (0.06 seconds)

  1. guava/src/com/google/common/escape/CharEscaperBuilder.java

      // The highest index we've seen so far.
      private int max = -1;
    
      /** Construct a new sparse array builder. */
      public CharEscaperBuilder() {
        this.map = new HashMap<>();
      }
    
      /** Add a new mapping from an index to an object to the escaping. */
      @CanIgnoreReturnValue
      public CharEscaperBuilder addEscape(char c, String r) {
        map.put(c, checkNotNull(r));
        if (c > max) {
          max = c;
        }
        return this;
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Jul 17 15:26:41 GMT 2025
    - 3.9K bytes
    - Click Count (0)
Back to Top